3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { public $hidden; function __call($name, $arguments) { echo 'hello from overload'; } } class Bar { function hello() { echo 'hello from bar'; } } function deleteMe(&$obj) { debug_zval_dump($obj); unset($obj); debug_zval_dump($obj); } $foo = new Bar(); deleteMe($foo); gc_collect_cycles(); $foo->hello();

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.40.0070.01018.67
8.3.30.0040.01119.09
8.3.20.0040.00420.20
8.3.10.0040.00421.78
8.3.00.0040.00422.51
8.2.170.0110.00422.96
8.2.160.0150.00019.25
8.2.150.0110.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0120.00619.66
8.2.110.0100.00021.08
8.2.100.0000.01217.91
8.2.90.0040.00419.27
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0050.00518.07
8.2.40.0000.00818.22
8.2.30.0000.00718.01
8.2.20.0040.00417.66
8.2.10.0000.00717.67
8.2.00.0040.00417.74
8.1.270.0110.00422.02
8.1.260.0110.00726.35
8.1.250.0120.00628.09
8.1.240.0040.00421.31
8.1.230.0100.00317.42
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0040.00717.35
8.1.190.0050.00317.10
8.1.180.0040.00418.74
8.1.170.0050.00518.50
8.1.160.0030.00622.02
8.1.150.0000.00718.59
8.1.140.0050.00217.27
8.1.130.0030.00617.88
8.1.120.0000.00717.46
8.1.110.0070.00017.43
8.1.100.0020.00517.47
8.1.90.0000.00717.34
8.1.80.0040.00417.45
8.1.70.0020.00517.30
8.1.60.0060.00317.43
8.1.50.0050.00317.43
8.1.40.0040.00417.43
8.1.30.0040.00417.56
8.1.20.0080.00017.54
8.1.10.0000.00717.45
8.1.00.0000.00817.46
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0040.00417.19
8.0.260.0070.00016.81
8.0.250.0030.00317.05
8.0.240.0050.00316.89
8.0.230.0040.00416.99
8.0.220.0000.00716.93
8.0.210.0000.00716.80
8.0.200.0060.00016.93
8.0.190.0060.00316.93
8.0.180.0040.00416.96
8.0.170.0000.00816.85
8.0.160.0000.00716.98
8.0.150.0000.00816.92
8.0.140.0040.00416.92
8.0.130.0050.00013.29
8.0.120.0080.00016.89
8.0.110.0070.00016.91
8.0.100.0000.00716.93
8.0.90.0060.00316.89
8.0.80.0070.01417.00
8.0.70.0040.00416.79
8.0.60.0080.00016.95
8.0.50.0070.00016.94
8.0.30.0080.01217.02
8.0.20.0110.00817.40
8.0.10.0070.00017.00
8.0.00.0090.00816.78
7.4.330.0020.00216.84
7.4.320.0000.00816.47
7.4.300.0030.00316.52
7.4.290.0000.00716.50
7.4.280.0070.00016.52
7.4.270.0030.00316.54
7.4.260.0000.00716.40
7.4.250.0040.00416.51
7.4.240.0000.00816.52
7.4.230.0000.00716.33
7.4.220.0060.00916.55
7.4.210.0080.00516.58
7.4.200.0040.00316.59
7.4.190.0040.00416.77
7.4.160.0130.01016.38
7.4.150.0160.00317.40
7.4.140.0130.00617.86
7.4.130.0130.00616.49
7.4.120.0060.01116.62
7.4.110.0100.00716.74
7.4.100.0100.01016.52
7.4.90.0080.00816.45
7.4.80.0090.00919.39
7.4.70.0120.00316.61
7.4.60.0060.00916.66
7.4.50.0000.00716.34
7.4.40.0050.00522.77
7.4.30.0140.00316.50
7.4.00.0120.00314.78
7.3.330.0000.00513.38
7.3.320.0050.00013.36
7.3.310.0050.00216.43
7.3.300.0000.00716.39
7.3.290.0120.00316.41
7.3.280.0110.00416.38
7.3.270.0070.01017.40
7.3.260.0080.01516.52
7.3.250.0030.01416.46
7.3.240.0220.00316.30
7.3.230.0060.01216.39
7.3.210.0030.01416.48
7.3.200.0080.00819.39
7.3.190.0080.00816.30
7.3.180.0070.01016.36
7.3.170.0120.00416.48
7.3.160.0090.00616.57
7.3.120.0100.00715.08
7.3.110.0030.01015.09
7.3.100.0090.00615.04
7.3.90.0070.00714.80
7.3.80.0000.01514.78
7.3.70.0070.00414.79
7.3.60.0030.00614.69
7.3.50.0060.00314.77
7.3.40.0100.00314.64
7.3.30.0040.00814.88
7.3.20.0070.01016.83
7.3.10.0030.01216.48
7.3.00.0060.00816.65
7.2.330.0150.00316.59
7.2.320.0060.01216.86
7.2.310.0110.00616.61
7.2.300.0180.00616.37
7.2.290.0140.00316.42
7.2.240.0040.01414.92
7.2.230.0080.00815.20
7.2.220.0030.00915.18
7.2.210.0110.00415.05
7.2.200.0000.01715.01
7.2.190.0110.00415.00
7.2.180.0000.01314.96
7.2.170.0000.01015.08
7.2.160.0070.00714.95
7.2.150.0060.00916.89
7.2.140.0070.01016.62
7.2.130.0060.01016.81
7.2.120.0050.00616.77
7.2.110.0040.01216.73
7.2.100.0120.00316.62
7.2.90.0050.01416.80
7.2.80.0090.00916.71
7.2.70.0070.01016.91
7.2.60.0090.00416.75
7.2.50.0070.01216.66
7.2.40.0130.00616.63
7.2.30.0080.00516.73
7.2.20.0080.00916.76
7.2.10.0080.00716.72
7.2.00.0140.00317.69
7.1.330.0030.01315.73
7.1.320.0060.00615.59
7.1.310.0040.00815.91
7.1.300.0110.00015.77
7.1.290.0060.00815.82
7.1.280.0090.00615.80
7.1.270.0070.00715.56
7.1.260.0040.01115.73
7.1.250.0090.00315.60
7.1.200.0080.00415.89
7.1.100.0000.01518.14
7.1.70.0110.00017.18
7.1.60.0060.01519.82
7.1.50.0140.01016.99
7.1.00.0030.03322.27
7.0.200.0000.00716.86
7.0.140.0000.08022.08
7.0.60.0030.08719.90
7.0.50.0100.07017.87
7.0.40.0130.07020.24
7.0.30.0200.04720.17
7.0.20.0430.07320.06
7.0.10.0070.04320.33
7.0.00.0030.04020.09
5.6.280.0070.07020.82
5.6.210.0070.07720.48
5.6.200.0030.08718.12
5.6.190.0030.05320.77
5.6.180.0570.06720.55
5.6.170.0300.07720.46
5.6.160.0100.04020.50
5.6.150.0070.08318.21
5.6.140.0070.04018.21
5.6.130.0100.07018.14
5.6.120.0030.08021.02
5.6.110.0070.06721.12
5.6.100.0030.04320.98
5.6.90.0100.08721.04
5.6.80.0030.04320.43
5.5.350.0300.06020.45
5.5.340.0100.07717.93
5.5.330.0100.04020.26
5.5.320.0430.06020.20
5.5.310.0170.04320.36
5.5.300.0070.03718.04
5.5.290.0100.08017.98
5.5.280.0070.08320.89
5.5.270.0100.08320.95
5.5.260.0130.09320.87
5.5.250.0070.07320.69
5.5.240.0030.03020.16
5.4.450.0530.05319.32
5.4.440.0670.06019.45
5.4.430.0200.05319.47
5.4.420.0400.07319.52
5.4.410.0200.07319.24
5.4.400.1300.04718.50
5.4.390.1400.05718.50
5.4.380.0330.05318.48
5.4.370.0170.04718.58
5.4.360.0070.05718.85
5.4.350.0130.05318.75
5.4.340.0170.05018.63
5.4.320.0090.03412.50
5.4.310.0060.03812.51
5.4.300.0050.03812.51
5.4.290.0040.04012.51
5.4.280.0040.03612.41
5.4.270.0040.03712.40
5.4.260.0270.03719.07
5.4.250.0130.06718.92
5.4.240.0070.06318.92
5.4.230.0230.06018.76
5.4.220.0200.06318.89
5.4.210.0130.05018.79
5.4.200.0030.06018.93
5.4.190.0100.06718.80
5.4.180.0000.09018.89
5.4.170.0170.05318.82
5.4.160.0070.05718.79
5.4.150.0000.09018.63
5.4.140.0130.06016.65
5.4.130.0100.06016.62
5.4.120.0100.04716.62
5.4.110.0000.08316.64
5.4.100.0130.05316.53
5.4.90.0130.04016.64
5.4.80.0000.05716.41
5.4.70.0100.05716.45
5.4.60.0000.06016.40
5.4.50.0070.05016.41
5.4.40.0100.07016.48
5.4.30.0170.05016.23
5.4.20.0100.06016.50
5.4.10.0100.04716.35
5.4.00.0130.04316.03
5.3.290.0070.03912.80
5.3.280.0130.06714.69
5.3.270.0070.07014.63
5.3.260.0130.07314.70
5.3.250.0130.05014.65
5.3.240.0100.07714.48
5.3.230.0070.07314.60
5.3.220.0130.05014.72
5.3.210.0030.06014.27
5.3.200.0230.03714.45
5.3.190.0070.05014.34
5.3.180.0100.07014.55
5.3.170.0230.05314.45
5.3.160.0030.05714.45
5.3.150.0230.03314.42
5.3.140.0100.06714.65
5.3.130.0100.05314.44
5.3.120.0170.07014.43
5.3.110.0070.05014.40
5.3.100.0030.05314.05
5.3.90.0130.05314.03
5.3.80.0100.07013.79
5.3.70.0100.05714.06
5.3.60.0070.05313.86
5.3.50.0100.05013.87
5.3.40.0100.04713.95
5.3.30.0100.04713.68
5.3.20.0100.06713.39
5.3.10.0170.06013.66
5.3.00.0070.05313.66
5.2.170.0030.04311.29
5.2.160.0130.05011.14
5.2.150.0100.03711.16
5.2.140.0100.03711.05
5.2.130.0070.03711.00
5.2.120.0100.03710.93
5.2.110.0030.04010.93
5.2.100.0030.06011.11
5.2.90.0030.04011.01
5.2.80.0070.04311.11
5.2.70.0070.06011.00
5.2.60.0130.03711.05
5.2.50.0070.06010.78
5.2.40.0030.04311.01
5.2.30.0170.05010.81
5.2.20.0170.04310.84
5.2.10.0070.04011.03
5.2.00.0070.04010.72
5.1.60.0000.03710.23
5.1.50.0030.03710.04
5.1.40.0030.0339.87
5.1.30.0100.03010.17
5.1.20.0070.05010.26
5.1.10.0030.0339.83
5.1.00.0070.0339.84
5.0.50.0000.0308.32
5.0.40.0000.0308.27
5.0.30.0030.0438.28
5.0.20.0100.0308.28
5.0.10.0030.0278.35
5.0.00.0070.0378.20
4.4.90.0070.0207.44
4.4.80.0030.0207.44
4.4.70.0030.0207.44
4.4.60.0100.0237.44
4.4.50.0000.0237.44
4.4.40.0000.0437.44
4.4.30.0070.0237.44
4.4.20.0100.0137.44
4.4.10.0030.0237.44
4.4.00.0000.0377.44
4.3.110.0070.0237.44
4.3.100.0030.0207.44
4.3.90.0000.0237.44
4.3.80.0000.0337.44
4.3.70.0030.0277.44
4.3.60.0000.0307.44
4.3.50.0000.0237.44
4.3.40.0030.0337.44
4.3.30.0000.0237.44
4.3.20.0000.0307.44
4.3.10.0030.0207.44
4.3.00.0100.0237.63

preferences:
43.89 ms | 400 KiB | 5 Q