3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bla = ''; public function __construct(){ $this->bla = "fooooo"; } public function __invoke($arg){ $this->bla = $arg + $this->bla; } } Class Foo2 extends Foo { } $blubb = new Foo2(); $blubb("bl0a"); var_dump($blubb);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0040.01116.50
8.3.50.0060.00921.21
8.3.40.0110.00718.79
8.3.30.0100.00718.79
8.3.20.0070.00022.09
8.3.10.0040.00421.89
8.3.00.0070.00021.63
8.2.180.0110.00416.63
8.2.170.0100.00722.96
8.2.160.0070.00720.53
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00021.00
8.2.120.0070.00026.35
8.2.110.0000.00919.38
8.2.100.0040.00817.80
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0090.00017.38
8.2.60.0000.00817.91
8.2.50.0050.00518.09
8.2.40.0040.00420.55
8.2.30.0000.00719.30
8.2.20.0000.00817.62
8.2.10.0040.00417.89
8.2.00.0000.00718.03
8.1.280.0110.00725.92
8.1.270.0000.00820.51
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00322.10
8.1.230.0070.00417.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0080.00018.59
8.1.160.0080.00020.67
8.1.150.0000.00718.75
8.1.140.0000.00919.44
8.1.130.0000.00717.65
8.1.120.0040.00417.37
8.1.110.0000.00817.44
8.1.100.0070.00017.30
8.1.90.0070.00017.40
8.1.80.0030.00717.34
8.1.70.0030.00317.29
8.1.60.0000.00817.60
8.1.50.0000.00817.58
8.1.40.0030.00617.58
8.1.30.0060.00317.68
8.1.20.0050.00217.54
8.1.10.0070.00017.59
8.1.00.0000.00817.41
8.0.300.0000.00818.84
8.0.290.0070.00016.75
8.0.280.0070.00018.39
8.0.270.0070.00017.12
8.0.260.0060.00317.12
8.0.250.0000.00616.96
8.0.240.0000.00716.88
8.0.230.0040.00416.94
8.0.220.0060.00316.92
8.0.210.0030.00316.83
8.0.200.0040.00416.85
8.0.190.0000.00716.90
8.0.180.0040.00416.94
8.0.170.0040.00416.96
8.0.160.0020.00516.83
8.0.150.0000.00716.83
8.0.140.0030.00616.80
8.0.130.0050.00013.31
8.0.120.0000.00816.89
8.0.110.0000.00816.84
8.0.100.0000.00716.92
8.0.90.0040.00416.79
8.0.80.0090.00616.83
8.0.70.0040.00416.87
8.0.60.0050.00216.77
8.0.50.0030.00516.92
8.0.30.0100.01017.04
8.0.20.0100.00917.40
8.0.10.0040.00416.96
8.0.00.0110.00617.03
7.4.330.0000.00516.71
7.4.320.0030.00316.46
7.4.300.0000.00816.62
7.4.290.0040.00416.63
7.4.280.0040.00416.57
7.4.270.0030.00316.42
7.4.260.0020.00516.41
7.4.250.0000.00716.37
7.4.240.0000.00716.53
7.4.230.0030.00316.72
7.4.220.0130.00616.56
7.4.210.0040.01116.60
7.4.200.0030.00316.54
7.4.160.0090.00616.33
7.4.150.0120.00617.40
7.4.140.0120.01217.86
7.4.130.0090.01216.44
7.4.120.0110.00716.52
7.4.110.0030.01416.52
7.4.100.0060.01716.35
7.4.90.0100.00616.45
7.4.80.0060.01219.39
7.4.70.0100.00616.52
7.4.60.0060.01116.75
7.4.50.0100.00616.43
7.4.40.0110.00416.40
7.4.30.0100.00716.67
7.4.00.0050.01114.75
7.3.330.0020.00213.36
7.3.320.0030.00313.35
7.3.310.0000.00716.46
7.3.300.0000.00716.24
7.3.290.0110.00516.36
7.3.280.0110.00816.37
7.3.270.0130.00317.40
7.3.260.0230.00016.34
7.3.250.0070.01216.34
7.3.240.0080.00816.36
7.3.230.0130.00316.49
7.3.210.0130.00316.37
7.3.200.0060.01519.39
7.3.190.0040.01216.45
7.3.180.0070.01016.66
7.3.170.0060.01316.47
7.3.160.0100.00716.48
7.3.120.0040.01114.84
7.3.110.0060.00715.03
7.3.100.0090.00914.82
7.3.90.0100.00714.82
7.3.80.0040.01114.54
7.3.70.0060.00315.00
7.3.60.0000.00814.80
7.3.50.0130.00014.64
7.3.40.0090.00314.93
7.3.30.0070.00314.63
7.3.20.0030.01316.70
7.3.10.0000.01116.36
7.3.00.0060.00816.62
7.2.330.0120.00616.73
7.2.320.0070.01116.74
7.2.310.0140.00316.77
7.2.300.0030.01216.72
7.2.290.0130.01116.70
7.2.250.0080.01114.75
7.2.240.0060.01014.91
7.2.230.0110.00714.95
7.2.220.0030.01015.23
7.2.210.0000.01014.84
7.2.200.0000.01415.11
7.2.190.0030.01014.98
7.2.180.0040.01115.13
7.2.170.0030.01315.14
7.2.130.0110.00316.85
7.2.120.0030.01016.76
7.2.110.0030.01016.85
7.2.100.0090.00316.86
7.2.90.0060.00316.95
7.2.80.0140.00017.03
7.2.70.0040.00717.02
7.2.60.0070.00517.04
7.2.50.0030.00616.96
7.2.40.0030.00717.05
7.2.30.0000.00816.92
7.2.20.0060.00317.02
7.2.10.0120.00316.79
7.2.00.0050.00918.23
7.1.330.0140.00015.92
7.1.320.0030.00915.59
7.1.310.0030.01015.79
7.1.300.0030.00515.54
7.1.290.0090.00615.47
7.1.280.0060.00815.74
7.1.270.0040.00415.59
7.1.260.0090.00315.71
7.1.250.0090.00915.80
7.1.240.0000.01115.77
7.1.230.0090.00315.70
7.1.220.0100.00315.76
7.1.210.0130.00315.77
7.1.200.0060.00715.49
7.1.190.0000.01315.62
7.1.180.0040.01115.54
7.1.170.0030.01015.64
7.1.160.0070.00715.53
7.1.150.0030.01015.59
7.1.140.0100.00315.60
7.1.130.0070.00715.88
7.1.120.0040.00715.85
7.1.110.0030.01215.50
7.1.100.0100.00616.85
7.1.90.0000.01415.97
7.1.80.0000.01315.56
7.1.70.0040.00616.41
7.1.60.0060.01117.61
7.1.50.0020.01416.40
7.1.40.0040.01115.97
7.1.30.0000.01115.54
7.1.20.0030.00715.89
7.1.10.0070.00315.64
7.1.00.0030.04019.04
7.0.330.0030.00915.25
7.0.320.0000.00915.61
7.0.310.0040.00815.53
7.0.300.0000.01115.41
7.0.290.0030.01015.18
7.0.280.0030.00515.30
7.0.270.0090.00015.34
7.0.260.0000.01215.50
7.0.250.0060.00615.23
7.0.240.0030.00715.51
7.0.230.0040.00415.29
7.0.220.0070.00715.26
7.0.210.0090.00015.56
7.0.200.0220.00814.99
7.0.190.0070.00315.44
7.0.180.0030.00815.22
7.0.170.0060.00315.25
7.0.160.0060.00615.26
7.0.150.0070.00315.44
7.0.140.0060.00615.51
7.0.130.0030.00615.44
7.0.120.0000.01115.30
7.0.110.0000.00815.43
7.0.100.0000.00915.45
7.0.90.0070.00415.38
7.0.80.0000.00815.26
7.0.70.0040.00415.65
7.0.60.0210.03518.45
7.0.50.0080.04116.72
7.0.40.0020.05016.77
7.0.30.0120.03016.74
7.0.20.0200.03916.76
7.0.10.0100.04316.77
7.0.00.0080.03516.91
5.6.380.0000.01814.32
5.6.370.0040.00414.50
5.6.360.0030.00914.17
5.6.350.0060.00314.32
5.6.340.0030.01014.50
5.6.330.0030.01014.05
5.6.320.0040.00814.61
5.6.310.0070.00714.18
5.6.300.0110.00414.18
5.6.290.0030.00814.34
5.6.280.0040.00414.21
5.6.270.0040.00714.37
5.6.260.0030.00714.23
5.6.250.0000.01014.43
5.6.240.0060.00614.41
5.6.230.0040.01114.33
5.6.220.0110.00414.13
5.6.210.0130.03817.50
5.6.200.0040.02516.23
5.6.190.0080.03817.42
5.6.180.0210.02217.41
5.6.170.0170.02217.48
5.6.160.0080.02217.38
5.6.150.0050.04116.39
5.6.140.0090.04016.25
5.6.130.0040.02716.29
5.6.120.0090.02917.75
5.6.110.0070.04617.65
5.6.100.0060.02217.66
5.6.90.0060.03517.62
5.6.80.0150.03517.43
5.6.70.0030.00814.31
5.6.60.0060.00614.45
5.6.50.0060.00614.38
5.6.40.0060.00614.30
5.6.30.0110.00314.18
5.6.20.0070.00714.33
5.6.10.0000.00814.32
5.6.00.0060.00614.22
5.5.380.0000.00511.18
5.5.370.0050.00211.21
5.5.360.0080.00411.42
5.5.350.0070.04015.76
5.5.340.0040.02314.61
5.5.330.0060.04415.88
5.5.320.0220.02515.77
5.5.310.0180.03415.71
5.5.300.0030.02114.59
5.5.290.0030.04414.58
5.5.280.0110.04115.97
5.5.270.0080.04016.21
5.5.260.0010.03615.95
5.5.250.0070.02015.94
5.5.240.0110.02015.62
5.5.230.0000.00911.18
5.5.220.0030.00711.18
5.5.210.0000.00811.18
5.5.200.0030.00611.24
5.5.190.0040.00411.18
5.5.180.0080.00411.18
5.5.170.0000.00911.18
5.5.160.0040.00811.23
5.5.150.0050.00511.18
5.5.140.0060.00311.25
5.5.130.0060.00611.20
5.5.120.0030.00711.18
5.5.110.0050.00311.22
5.5.100.0040.00411.18
5.5.90.0000.01111.25
5.5.80.0040.00411.18
5.5.70.0090.00311.18
5.5.60.0060.00611.31
5.5.50.0110.00011.18
5.5.40.0000.00911.31
5.5.30.0000.01111.18
5.5.20.0070.00411.18
5.5.10.0030.00311.18
5.5.00.0000.01011.23

preferences:
51.47 ms | 401 KiB | 5 Q