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'; } } class Cheese extends Bar { public static function deleteMe(&$obj) { debug_zval_dump($obj); unset($obj); debug_zval_dump($obj); } } $foo = new Bar(); Cheese::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.60.0070.01418.56
8.3.50.0100.00921.08
8.3.40.0070.00718.85
8.3.30.0030.01019.05
8.3.20.0070.00020.16
8.3.10.0000.00722.05
8.3.00.0040.00420.68
8.2.180.0070.00716.38
8.2.170.0140.00722.96
8.2.160.0070.01019.25
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0140.00019.59
8.2.110.0050.00522.14
8.2.100.0090.00319.34
8.2.90.0000.00819.06
8.2.80.0000.00818.16
8.2.70.0070.00317.75
8.2.60.0050.00317.93
8.2.50.0030.00518.07
8.2.40.0030.00618.22
8.2.30.0000.00818.01
8.2.20.0050.00317.72
8.2.10.0040.00417.63
8.2.00.0000.00717.56
8.1.280.0070.01025.92
8.1.270.0040.00422.19
8.1.260.0080.00026.35
8.1.250.0110.00428.09
8.1.240.0040.00424.02
8.1.230.0080.00318.97
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.25
8.1.190.0030.00617.39
8.1.180.0080.00018.61
8.1.170.0040.00418.51
8.1.160.0080.00022.14
8.1.150.0030.00618.65
8.1.140.0050.00317.34
8.1.130.0000.00717.74
8.1.120.0000.00817.46
8.1.110.0040.00417.25
8.1.100.0050.00217.40
8.1.90.0000.00717.30
8.1.80.0030.00417.39
8.1.70.0040.00417.35
8.1.60.0040.00417.48
8.1.50.0000.00817.52
8.1.40.0000.00717.47
8.1.30.0000.00717.53
8.1.20.0060.00317.56
8.1.10.0000.00817.58
8.1.00.0030.00617.53
8.0.300.0040.00418.77
8.0.290.0070.00017.02
8.0.280.0030.00318.46
8.0.270.0070.00017.33
8.0.260.0060.00016.84
8.0.250.0030.00316.95
8.0.240.0000.00916.95
8.0.230.0050.00216.91
8.0.220.0030.00316.95
8.0.210.0050.00216.94
8.0.200.0000.00816.97
8.0.190.0030.00516.97
8.0.180.0040.00416.91
8.0.170.0050.00316.85
8.0.160.0000.00716.91
8.0.150.0070.00016.84
8.0.140.0000.00816.88
8.0.130.0050.00313.29
8.0.120.0030.00516.79
8.0.110.0080.00016.96
8.0.100.0000.00716.77
8.0.90.0040.00416.79
8.0.80.0030.01216.96
8.0.70.0040.00416.90
8.0.60.0070.00016.72
8.0.50.0050.00216.84
8.0.30.0080.01017.20
8.0.20.0070.01217.40
8.0.10.0040.00417.00
8.0.00.0080.01116.78
7.4.330.0000.00415.09
7.4.320.0070.00016.37
7.4.300.0060.00016.44
7.4.290.0020.00516.53
7.4.280.0030.00316.52
7.4.270.0030.00316.62
7.4.260.0070.00016.47
7.4.250.0030.00316.50
7.4.240.0040.00416.59
7.4.230.0000.00716.50
7.4.220.0080.00816.64
7.4.210.0040.01016.53
7.4.200.0000.00716.66
7.4.190.0000.00716.41
7.4.160.0090.00616.43
7.4.150.0110.00617.40
7.4.140.0070.01017.86
7.4.130.0080.00916.45
7.4.120.0120.00516.52
7.4.110.0140.00316.71
7.4.100.0140.00716.36
7.4.90.0130.00316.55
7.4.80.0130.00319.39
7.4.70.0030.01416.51
7.4.60.0130.00316.57
7.4.50.0000.00816.65
7.4.40.0000.00922.77
7.4.30.0070.01016.54
7.4.00.0090.00814.76
7.3.330.0050.00013.13
7.3.320.0030.00313.22
7.3.310.0030.00316.28
7.3.300.0050.00316.23
7.3.290.0090.00916.28
7.3.280.0040.01016.28
7.3.270.0060.01317.40
7.3.260.0070.01116.41
7.3.250.0150.00716.40
7.3.240.0070.01016.66
7.3.230.0060.01216.39
7.3.210.0110.00916.42
7.3.200.0030.01319.39
7.3.190.0090.00916.30
7.3.180.0160.00016.44
7.3.170.0150.00616.49
7.3.160.0030.01316.30
7.3.120.0070.00914.58
7.3.110.0060.01314.96
7.3.100.0090.00914.74
7.3.90.0070.01014.88
7.3.80.0070.00314.85
7.3.70.0100.00314.77
7.3.60.0040.00814.48
7.3.50.0070.00714.33
7.3.40.0000.01114.82
7.3.30.0040.00414.75
7.3.20.0040.00416.66
7.3.10.0100.00616.45
7.3.00.0030.00616.73
7.2.330.0110.00616.51
7.2.320.0110.00516.69
7.2.310.0090.00616.66
7.2.300.0150.00916.66
7.2.290.0090.00616.55
7.2.250.0060.01214.97
7.2.240.0100.01015.18
7.2.230.0040.01415.02
7.2.220.0000.01514.99
7.2.210.0100.00014.60
7.2.200.0000.01614.86
7.2.190.0040.00814.88
7.2.180.0100.00714.80
7.2.170.0030.01015.01
7.2.60.0100.00316.65
7.2.00.0090.00319.43
7.1.330.0040.01115.89
7.1.320.0000.01315.59
7.1.310.0080.00415.68
7.1.300.0070.00715.61
7.1.290.0060.00915.81
7.1.280.0000.01315.75
7.1.270.0080.00815.51
7.1.260.0110.00415.38
7.1.200.0160.00615.34
7.1.100.0300.00718.16
7.1.70.0060.00617.04
7.1.60.0150.00919.82
7.1.50.0090.01517.07
7.1.00.0000.03722.57
7.0.200.0000.00716.91
7.0.140.0130.06722.12
7.0.60.0100.07719.96
7.0.50.0100.08017.83
7.0.40.0170.07720.18
7.0.30.0270.05720.08
7.0.20.0230.05020.12
7.0.10.0030.04320.09
7.0.00.0100.07720.22
5.6.280.0100.06720.93
5.6.210.0070.08720.50
5.6.200.0070.08318.14
5.6.190.0030.06320.55
5.6.180.0170.05320.33
5.6.170.0130.09320.56
5.6.160.0030.04020.39
5.6.150.0030.06018.17
5.6.140.0100.07718.24
5.6.130.0070.06718.15
5.6.120.0100.07721.02
5.6.110.0070.07320.90
5.6.100.0030.08721.00
5.6.90.0130.07020.99
5.6.80.0030.08320.41
5.5.350.0470.05020.47
5.5.340.0030.08717.94
5.5.330.0030.04020.27
5.5.320.0170.08020.27
5.5.310.0300.04720.27
5.5.300.0070.03717.92
5.5.290.0100.08317.95
5.5.280.0030.09020.78
5.5.270.0170.07320.79
5.5.260.0030.05020.88
5.5.250.0130.07720.72
5.5.240.0330.07020.16
5.4.450.0100.03719.41
5.4.440.0000.04319.46
5.4.430.3800.03019.63
5.4.420.3900.03719.27
5.4.410.3670.03719.34
5.4.400.3700.03718.86
5.4.390.3600.03719.09
5.4.380.3600.03318.98
5.4.370.3470.03319.20
5.4.360.4000.03719.26
5.4.350.3670.03319.22
5.4.340.3670.03318.87
5.4.320.3670.03719.08
5.4.310.4400.03018.87
5.4.300.3730.03318.98
5.4.290.3730.03319.09
5.4.280.3670.03319.13
5.4.270.3400.03718.94
5.4.260.3630.03719.05
5.4.250.3970.03319.25
5.4.240.3630.03319.05
5.4.230.4000.03319.13
5.4.220.1600.03018.98
5.4.210.3270.03719.30
5.4.200.3030.03019.14
5.4.190.3030.03318.84
5.4.180.3100.03319.29
5.4.170.3070.04019.21
5.4.160.3370.04019.21
5.4.150.3270.03319.21
5.4.140.3670.03316.43
5.4.130.3470.03316.40
5.4.120.4000.03016.43
5.4.110.3430.02716.50
5.4.100.3600.03716.42
5.4.90.3570.03316.60
5.4.80.3600.03316.49
5.4.70.3600.02716.29
5.4.60.3800.02316.51
5.4.50.3700.03716.32
5.4.40.3630.04016.24
5.4.30.3730.03316.43
5.4.20.3900.03316.50
5.4.10.3870.04016.43
5.4.00.3930.03315.80
5.3.290.3700.04014.63
5.3.280.3630.03314.44
5.3.270.3770.03014.46
5.3.260.3530.03314.55
5.3.250.3730.04314.56
5.3.240.3630.03714.46
5.3.230.4030.03314.46
5.3.220.3900.04014.50
5.3.210.3670.03714.59
5.3.200.3270.03714.47
5.3.190.3630.03714.52
5.3.180.3730.03014.42
5.3.170.3630.03314.40
5.3.160.3630.03314.59
5.3.150.3530.03714.40
5.3.140.3630.04014.64
5.3.130.3170.03714.49
5.3.120.3570.03714.42
5.3.110.4330.03314.46
5.3.100.3570.04013.88
5.3.90.4070.02713.95
5.3.80.3630.03713.98
5.3.70.3670.04013.85
5.3.60.3600.03314.04
5.3.50.3870.03713.94
5.3.40.0030.03713.78
5.3.30.0000.03713.86
5.3.20.3630.03313.72
5.3.10.3900.03713.62
5.3.00.3770.03313.51
5.2.170.3200.02011.23
5.2.160.1330.02710.99
5.2.150.0130.05011.08
5.2.140.3170.03311.19
5.2.130.2930.02710.94
5.2.120.3130.02010.94
5.2.110.3400.03010.96
5.2.100.3100.02310.94
5.2.90.2730.02711.19
5.2.80.3230.03711.18
5.2.70.3500.03010.98
5.2.60.3030.03011.05
5.2.50.3070.02710.90
5.2.40.2630.03710.92
5.2.30.2400.02711.06
5.2.20.2400.02710.96
5.2.10.2630.03010.77
5.2.00.2500.02710.57
5.1.60.2430.0239.87
5.1.50.2470.0239.89
5.1.40.0000.0279.95
5.1.30.0000.03310.27
5.1.20.0000.03310.37
5.1.10.0030.02310.08
5.1.00.1170.02710.16
5.0.50.1300.0208.44
5.0.40.1200.0208.49
5.0.30.1270.0238.27
5.0.20.1230.0178.35
5.0.10.1470.0238.14
5.0.00.1300.0278.30
4.4.90.1300.0206.39
4.4.80.1400.0206.39
4.4.70.1230.0136.39
4.4.60.1200.0136.39
4.4.50.1270.0176.39
4.4.40.1200.0236.39
4.4.30.0630.0136.39
4.4.20.0030.0176.39
4.4.10.1370.0206.39
4.4.00.1300.0236.39
4.3.110.1200.0136.39
4.3.100.1200.0176.39
4.3.90.1200.0136.39
4.3.80.1230.0276.39
4.3.70.1300.0206.39
4.3.60.1370.0176.39
4.3.50.1430.0136.39
4.3.40.1330.0236.39
4.3.30.0630.0136.39
4.3.20.0770.0136.39
4.3.10.0600.0176.39
4.3.00.0630.0176.39

preferences:
43.48 ms | 400 KiB | 5 Q