3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $test = "deuxieme"; } $object = new a(); function output($buffer) { global $object; return $buffer." ".$object->test; } ob_start('output'); echo "premier"; $a = range(1,5000); var_dump($a);

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.00918.55
8.3.50.0090.01121.99
8.3.40.0150.00019.06
8.3.30.0090.01319.48
8.3.20.0080.00020.79
8.3.10.0030.00522.09
8.3.00.0050.00522.27
8.2.180.0120.00917.13
8.2.170.0120.00922.96
8.2.160.0070.00720.89
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0090.00926.16
8.2.120.0040.00419.48
8.2.110.0030.00621.97
8.2.100.0030.00918.34
8.2.90.0040.00419.71
8.2.80.0030.00618.54
8.2.70.0030.00918.13
8.2.60.0090.00018.29
8.2.50.0110.00018.11
8.2.40.0060.00318.58
8.2.30.0040.00418.73
8.2.20.0030.00618.34
8.2.10.0030.00619.49
8.2.00.0040.00418.36
8.1.280.0150.00325.92
8.1.270.0000.00822.68
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00923.76
8.1.230.0090.00319.79
8.1.220.0030.00618.14
8.1.210.0030.00618.77
8.1.200.0070.00417.97
8.1.190.0000.00918.02
8.1.180.0040.00418.10
8.1.170.0060.00319.29
8.1.160.0030.00622.70
8.1.150.0060.00319.23
8.1.140.0030.00718.13
8.1.130.0040.00418.51
8.1.120.0030.00618.21
8.1.110.0040.00418.13
8.1.100.0000.00918.11
8.1.90.0000.00918.04
8.1.80.0030.00618.16
8.1.70.0040.00418.10
8.1.60.0090.00018.30
8.1.50.0060.00318.10
8.1.40.0030.00618.09
8.1.30.0000.00918.19
8.1.20.0060.00318.26
8.1.10.0030.00618.16
8.1.00.0050.00518.26
8.0.300.0090.00018.77
8.0.290.0070.00317.68
8.0.280.0030.00518.99
8.0.270.0000.00917.82
8.0.260.0040.00717.43
8.0.250.0000.01117.51
8.0.240.0030.00517.39
8.0.230.0050.00317.47
8.0.220.0080.00017.46
8.0.210.0070.00017.49
8.0.200.0050.00317.56
8.0.190.0030.00617.55
8.0.180.0060.00317.50
8.0.170.0000.00917.44
8.0.160.0090.00017.55
8.0.150.0000.00817.32
8.0.140.0080.00017.49
8.0.130.0040.00413.96
8.0.120.0040.00417.46
8.0.110.0030.00617.47
8.0.100.0040.00417.51
8.0.90.0030.00617.46
8.0.80.0080.00817.50
8.0.70.0050.00517.43
8.0.60.0030.00517.43
8.0.50.0030.00617.34
8.0.30.0150.01017.62
8.0.20.0100.00917.54
8.0.10.0040.00417.39
8.0.00.0110.00817.27
7.4.330.0000.00615.17
7.4.320.0040.00417.05
7.4.300.0000.00817.07
7.4.290.0040.00417.05
7.4.280.0040.00417.00
7.4.270.0000.00817.00
7.4.260.0080.00016.99
7.4.250.0030.00616.86
7.4.240.0030.00516.98
7.4.230.0030.00516.86
7.4.220.0100.01016.86
7.4.210.0110.00817.04
7.4.200.0030.00616.95
7.4.190.0000.00817.02
7.4.160.0030.01416.93
7.4.150.0140.00517.40
7.4.140.0160.00717.86
7.4.130.0150.01016.95
7.4.120.0070.01217.15
7.4.110.0140.00716.95
7.4.100.0130.00917.05
7.4.90.0100.00916.85
7.4.80.0070.01819.39
7.4.70.0160.00317.05
7.4.60.0070.01116.96
7.4.50.0030.00716.78
7.4.40.0000.01222.77
7.4.30.0080.00816.99
7.4.00.0030.01315.48
7.3.330.0030.00613.98
7.3.320.0030.00313.79
7.3.310.0060.00316.81
7.3.300.0030.00616.86
7.3.290.0040.01116.87
7.3.280.0080.00916.87
7.3.270.0040.01517.40
7.3.260.0080.01117.04
7.3.250.0140.00616.96
7.3.240.0030.01517.10
7.3.230.0060.01916.82
7.3.210.0090.00916.86
7.3.200.0060.01219.39
7.3.190.0100.01717.05
7.3.180.0080.00817.06
7.3.170.0120.01216.98
7.3.160.0100.01316.95
7.3.120.0070.01015.39
7.2.330.0080.01217.12
7.2.320.0160.00716.97
7.2.310.0140.00916.95
7.2.300.0030.01517.19
7.2.290.0070.01117.41
7.2.60.0000.01416.81
7.2.00.0040.00819.28
7.1.200.0080.00415.79
7.1.100.0040.01318.00
7.1.70.0000.01117.01
7.1.60.0060.01819.82
7.1.50.0040.01917.19
7.0.200.0060.00316.93

preferences:
47.69 ms | 400 KiB | 5 Q