3v4l.org

run code in 300+ PHP versions simultaneously
<?php class abc { public $a = 'A'; public function __debugInfo($a, $b) { return array("\0*\0b"=>'B'); } } var_dump(new abc());

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)
5.5.350.0070.07320.34
5.5.340.0070.07717.96
5.5.330.0070.05320.28
5.5.320.0130.06720.20
5.5.310.0370.07320.41
5.5.300.0030.07017.92
5.5.290.0100.05017.96
5.5.280.0100.07720.88
5.5.270.0030.04020.79
5.5.260.0030.04020.84
5.5.250.0100.08320.58
5.5.240.0070.08020.04
5.4.450.0130.05719.31
5.4.440.0570.05019.55
5.4.430.0100.07019.56
5.4.420.0100.05719.55
5.4.410.0070.05719.25
5.4.400.0900.00018.87
5.4.390.1070.00018.73
5.4.380.0270.05318.56
5.4.370.0170.05018.46
5.4.360.0100.05318.72
5.4.350.0230.06318.56
5.4.340.0270.04318.70
5.4.320.0060.04012.50
5.4.310.0050.03812.50
5.4.300.0070.04212.50
5.4.290.0020.04112.50
5.4.280.0100.03312.39
5.4.270.0070.07318.90
5.4.260.0030.05718.75
5.4.250.0100.05318.93
5.4.240.0030.05718.96
5.4.230.0030.07018.95
5.4.220.0070.06318.89
5.4.210.0170.07018.76
5.4.200.0100.07318.93
5.4.190.0100.07019.08
5.4.180.0170.05718.92
5.4.170.0100.05319.00
5.4.160.0130.04718.63
5.4.150.0130.07718.94
5.4.140.0030.07016.35
5.4.130.0170.06016.46
5.4.120.0130.06716.35
5.4.110.0030.07316.40
5.4.100.0130.06316.33
5.4.90.0100.06316.63
5.4.80.0230.04716.59
5.4.70.0030.06716.39
5.4.60.0030.07316.43
5.4.50.0100.07316.29
5.4.40.0000.05316.54
5.4.30.0100.05016.38
5.4.20.0070.05716.45
5.4.10.0100.06716.49
5.4.00.0100.06015.87
5.3.290.0090.05512.80
5.3.280.0100.06314.73
5.3.270.0130.05014.74
5.3.260.0170.06314.69
5.3.250.0100.07314.70
5.3.240.0100.06714.77
5.3.230.0130.05014.57
5.3.220.0230.06014.56
5.3.210.0070.07314.55
5.3.200.0030.07314.63
5.3.190.0170.07314.47
5.3.180.0030.05314.64
5.3.170.0100.05714.56
5.3.160.0070.05014.62
5.3.150.0170.04314.71
5.3.140.0170.06714.63
5.3.130.0070.06714.68
5.3.120.0130.04314.44
5.3.110.0170.05314.53
5.3.100.0170.04714.18
5.3.90.0070.06014.20
5.3.80.0170.04713.92
5.3.70.0170.06314.00
5.3.60.0200.04014.07
5.3.50.0070.05014.03
5.3.40.0070.05314.01
5.3.30.0100.05313.89
5.3.20.0070.07313.60
5.3.10.0030.06013.86
5.3.00.0130.04313.72
5.2.170.0100.06011.22
5.2.160.0170.04711.23
5.2.150.0100.03711.23
5.2.140.0070.06011.04
5.2.130.0070.04011.09
5.2.120.0100.05711.18
5.2.110.0130.04711.26
5.2.100.0030.04711.18
5.2.90.0070.05311.10
5.2.80.0030.04311.25
5.2.70.0070.05311.18
5.2.60.0130.04310.89
5.2.50.0030.04311.09
5.2.40.0000.05311.15
5.2.30.0070.04711.13
5.2.20.0070.05311.02
5.2.10.0030.04010.67
5.2.00.0200.04710.72
5.1.60.0100.04010.09
5.1.50.0030.0379.99
5.1.40.0100.0479.93
5.1.30.0030.05310.31
5.1.20.0070.03310.44
5.1.10.0030.05010.04
5.1.00.0130.04010.13
5.0.50.0100.0278.74
5.0.40.0030.0278.49
5.0.30.0070.0578.31
5.0.20.0070.0278.34
5.0.10.0070.0278.12
5.0.00.0030.0478.12
4.4.90.0030.0277.12
4.4.80.0000.0277.12
4.4.70.0070.0237.12
4.4.60.0030.0307.12
4.4.50.0030.0277.12
4.4.40.0000.0377.12
4.4.30.0070.0237.12
4.4.20.0100.0237.12
4.4.10.0070.0277.12
4.4.00.0070.0307.12
4.3.110.0070.0307.12
4.3.100.0030.0307.12
4.3.90.0070.0207.12
4.3.80.0030.0377.12
4.3.70.0030.0237.12
4.3.60.0070.0177.12
4.3.50.0100.0307.12
4.3.40.0000.0477.12
4.3.30.0000.0277.12
4.3.20.0100.0207.12
4.3.10.0030.0307.12
4.3.00.0000.0307.77

preferences:
142.48 ms | 1394 KiB | 7 Q