3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bla { static function bar(){ static $flag = 1; $flag++; if ($flag == 2 ) { echo '\nstring name blee'; return 'blee'; } if ($flag == 3){ echo '\nnew object blee'; return new blee; } } } class blee { static $baz = "\nOh, baz!"; } /**********************************/ $foo = "bla"; echo $foo::bar()::$baz; $foo = new bla; echo $foo::bar()::$baz;

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.0090.00616.48
8.3.50.0150.00016.61
8.3.40.0070.01418.58
8.3.30.0150.00618.69
8.3.20.0050.00220.34
8.3.10.0040.00423.48
8.3.00.0040.00423.61
8.2.180.0110.00416.49
8.2.170.0080.00822.96
8.2.160.0100.00320.39
8.2.150.0030.00524.18
8.2.140.0100.00324.66
8.2.130.0060.00321.13
8.2.120.0040.00426.35
8.2.110.0030.00620.97
8.2.100.0090.00317.93
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0050.00322.31
8.2.30.0070.00019.44
8.2.20.0000.01017.71
8.2.10.0070.00017.99
8.2.00.0090.00018.05
8.1.280.0000.01425.92
8.1.270.0110.00722.19
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00822.53
8.1.230.0090.00317.83
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0070.00317.47
8.1.190.0040.00417.25
8.1.180.0060.00318.10
8.1.170.0080.00018.56
8.1.160.0040.00420.75
8.1.150.0050.00320.72
8.1.140.0080.00019.58
8.1.130.0030.00317.58
8.1.120.0070.00017.49
8.1.110.0080.00017.45
8.1.100.0000.00817.48
8.1.90.0050.00217.46
8.1.80.0040.00417.35
8.1.70.0030.00317.33
8.1.60.0000.00717.58
8.1.50.0060.00317.41
8.1.40.0000.00817.43
8.1.30.0050.00317.54
8.1.20.0030.00517.62
8.1.10.0020.00517.43
8.1.00.0000.00817.40
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.41
8.0.270.0000.00717.26
8.0.260.0030.00317.17
8.0.250.0070.00016.93
8.0.240.0030.00316.98
8.0.230.0030.00316.98
8.0.220.0080.00016.93
8.0.210.0080.00016.91
8.0.200.0000.00616.95
8.0.190.0000.00716.89
8.0.180.0000.00716.91
8.0.170.0000.00716.89
8.0.160.0000.00716.94
8.0.150.0000.00816.76
8.0.140.0030.00316.83
8.0.130.0000.00713.36
8.0.120.0040.00416.79
8.0.110.0000.00716.80
8.0.100.0000.00816.93
8.0.90.0050.00216.95
8.0.80.0110.00316.95
8.0.70.0040.00416.89
8.0.60.0080.00016.80
8.0.50.0040.00416.87
8.0.30.0110.01016.98
8.0.20.0120.00817.40
8.0.10.0000.00717.01
8.0.00.0100.01116.74
7.4.330.0000.00616.84
7.4.320.0000.00716.61
7.4.300.0000.00716.50
7.4.290.0030.00316.58
7.4.280.0000.00716.53
7.4.270.0000.00616.43
7.4.260.0030.00716.52
7.4.250.0040.00416.47
7.4.240.0040.00416.50
7.4.230.0000.00716.70
7.4.220.0120.00416.46
7.4.210.0080.01216.64
7.4.200.0000.00716.30
7.4.160.0150.00416.65
7.4.150.0100.01017.40
7.4.140.0130.01017.86
7.4.130.0070.01116.52
7.4.120.0080.01116.55
7.4.110.0120.00616.42
7.4.100.0100.00716.46
7.4.90.0140.00316.44
7.4.80.0070.01019.39
7.4.70.0070.01016.45
7.4.60.0110.00716.45
7.4.50.0040.01116.61
7.4.40.0080.01216.39
7.4.30.0030.01416.45
7.4.00.0030.01415.03
7.3.330.0060.00013.36
7.3.320.0050.00013.29
7.3.310.0000.00716.37
7.3.300.0030.00316.36
7.3.290.0030.00316.37
7.3.280.0080.00816.38
7.3.270.0070.01017.40
7.3.260.0140.00316.63
7.3.250.0110.00616.46
7.3.240.0120.00716.43
7.3.230.0060.01116.45
7.3.210.0070.01016.38
7.3.200.0030.01319.39
7.3.190.0080.01316.64
7.3.180.0110.00716.39
7.3.170.0050.01316.45
7.3.160.0150.00016.34
7.3.120.0070.01114.82
7.3.110.0120.00315.02
7.3.100.0100.00715.01
7.3.90.0060.00615.01
7.3.80.0170.00014.80
7.3.70.0000.01414.97
7.3.60.0070.00714.77
7.3.50.0060.00614.85
7.3.40.0110.00414.91
7.3.30.0120.00314.86
7.3.20.0000.01516.63
7.3.10.0100.00716.77
7.3.00.0060.00616.87
7.2.330.0060.01416.57
7.2.320.0000.02116.34
7.2.310.0060.01016.40
7.2.300.0100.01016.47
7.2.290.0070.01016.57
7.2.240.0070.01115.21
7.2.230.0090.00615.15
7.2.220.0000.01814.98
7.2.210.0060.00914.93
7.2.200.0040.00814.94
7.2.190.0070.01114.76
7.2.180.0100.00615.10
7.2.170.0150.00415.09
7.2.160.0000.01614.80
7.2.150.0000.01517.06
7.2.140.0040.01116.80
7.2.130.0060.00916.78
7.2.120.0090.00616.89
7.2.110.0030.01416.99
7.2.100.0060.00916.72
7.2.90.0030.01017.22
7.2.80.0040.01116.97
7.2.70.0100.00616.84
7.2.60.0080.01016.89
7.2.50.0040.00817.06
7.2.40.0090.00916.80
7.2.30.0060.00916.99
7.2.20.0100.00717.07
7.2.10.0080.00717.10
7.2.00.0020.01018.19
7.1.330.0120.00315.45
7.1.320.0030.01215.68
7.1.310.0070.00715.93
7.1.300.0070.00715.62
7.1.290.0030.00715.89
7.1.280.0060.00915.72
7.1.270.0130.00015.73
7.1.260.0120.00315.55
7.1.250.0080.00815.89
7.1.200.0090.00415.88
7.1.100.0030.00918.11
7.1.70.0080.00016.81
7.1.60.0110.01419.40
7.1.50.0070.01316.87
7.1.00.0070.07322.47
7.0.200.0030.00616.39
7.0.60.0070.07321.59
7.0.50.0070.05317.81
7.0.40.0070.05720.21
7.0.30.0200.04020.19
7.0.20.0300.08720.23
7.0.10.0130.08320.30
7.0.00.0070.04320.20
5.6.280.0130.06321.11
5.6.210.0000.08720.71
5.6.200.0100.07018.14
5.6.190.0130.06320.61
5.6.180.0230.04720.67
5.6.170.0400.07320.47
5.6.160.0030.06320.55
5.6.150.0030.08718.27
5.6.140.0070.04018.16
5.6.130.0000.04318.14
5.6.120.0030.04020.99
5.6.110.0170.07321.01
5.6.100.0100.05321.11
5.6.90.0030.08721.10
5.6.80.0100.07720.46
5.5.350.3700.03320.41
5.5.340.0030.08017.96
5.5.330.0030.07320.44
5.5.320.0500.05320.20
5.5.310.0200.03720.32
5.5.300.0130.04017.93
5.5.290.0130.07718.03
5.5.280.0030.08720.85
5.5.270.0070.07720.86
5.5.260.0070.08320.64
5.5.250.0070.08320.62
5.5.240.0200.08020.24

preferences:
49.96 ms | 400 KiB | 5 Q