3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function hello() { echo 'hello'; } public function __call($name, $argument) { echo 'overload call'; } } class Bar extends Foo { public function __construct() { $foo = new Foo(); var_dump($foo); deleteMe($foo); //gc_collect_cycles(); $foo->hello(); } } function deleteMe(&$obj) { $obj = (unset) $obj; } $bar = new Bar();

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.0100.00717.93
8.3.50.0170.00716.48
8.3.40.0070.00718.54
8.3.30.0030.01018.96
8.3.20.0040.00420.29
8.3.10.0050.00322.14
8.3.00.0080.00022.46
8.2.180.0060.00916.63
8.2.170.0170.00322.96
8.2.160.0100.00319.12
8.2.150.0050.00224.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00819.54
8.2.110.0060.00322.29
8.2.100.0090.00317.81
8.2.90.0050.00218.92
8.2.80.0090.00017.97
8.2.70.0040.00417.38
8.2.60.0000.00817.91
8.2.50.0080.00018.07
8.2.40.0040.00418.03
8.2.30.0070.00017.80
8.2.20.0050.00217.57
8.2.10.0000.00817.46
8.2.00.0040.00817.44
8.1.270.0060.00322.13
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0000.00923.70
8.1.230.0030.00719.09
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0000.00717.39
8.1.180.0080.00020.46
8.1.170.0040.00418.64
8.1.160.0070.00022.14
8.1.150.0000.00718.50
8.1.140.0000.00717.24
8.1.130.0000.00717.23
8.1.120.0070.00017.23
8.1.110.0040.00317.22
8.1.100.0030.00317.30
8.1.90.0050.00317.32
8.1.80.0000.00717.29
8.1.70.0030.00317.32
8.1.60.0040.00417.37
8.1.50.0040.00417.29
8.1.40.0050.00317.37
8.1.30.0050.00317.54
8.1.20.0000.00817.57
8.1.10.0000.00717.39
8.1.00.0000.00917.29
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0040.00418.23
8.0.270.0030.00317.09
8.0.260.0000.00716.66
8.0.250.0000.00716.96
8.0.240.0070.00016.86
8.0.230.0000.00716.89
8.0.220.0040.00416.81
8.0.210.0000.00716.72
8.0.200.0000.00716.88
8.0.190.0040.00416.82
8.0.180.0020.00516.74
8.0.170.0040.00416.86
8.0.160.0000.00716.70
8.0.150.0070.00016.84
8.0.140.0050.00216.77
8.0.130.0080.00013.18
8.0.120.0040.00416.69
8.0.110.0070.00016.72
8.0.100.0070.00016.72
8.0.90.0040.00416.69
8.0.80.0080.00816.70
8.0.70.0040.00416.90
8.0.60.0000.00816.90
8.0.50.0000.00716.72
8.0.30.0080.00916.82
8.0.20.0070.01117.40
8.0.10.0040.00416.95
8.0.00.0070.01016.75
7.4.330.0020.00216.89
7.4.320.0000.00716.40
7.4.300.0060.00016.65
7.4.290.0030.00316.52
7.4.280.0070.00016.54
7.4.270.0000.00716.49
7.4.260.0030.00416.50
7.4.250.0040.00416.55
7.4.240.0050.00216.47
7.4.230.0000.00716.62
7.4.220.0100.01016.47
7.4.210.0050.01316.55
7.4.200.0070.00016.32
7.4.190.0000.00716.64
7.4.160.0060.00916.43
7.4.150.0070.01117.40
7.4.140.0040.01417.86
7.4.130.0120.00716.42
7.4.120.0050.01216.48
7.4.110.0000.01616.64
7.4.100.0070.01316.47
7.4.90.0120.00616.58
7.4.80.0160.00619.39
7.4.70.0110.00516.62
7.4.60.0090.00916.57
7.4.50.0080.00016.62
7.4.40.0140.00322.77
7.4.30.0100.00716.66
7.4.00.0000.01415.14
7.3.330.0000.00613.29
7.3.320.0030.00313.22
7.3.310.0000.00816.21
7.3.300.0040.00416.31
7.3.290.0070.00716.32
7.3.280.0050.01016.37
7.3.270.0030.01317.40
7.3.260.0140.00416.58
7.3.250.0060.01316.38
7.3.240.0060.01116.43
7.3.230.0080.00816.46
7.3.210.0140.00516.46
7.3.200.0120.00316.39
7.3.190.0150.00616.59
7.3.180.0040.01216.34
7.3.170.0080.00816.39
7.3.160.0100.00616.38
7.3.120.0030.01015.05
7.2.330.0000.01716.45
7.2.320.0040.01216.45
7.2.310.0090.00816.44
7.2.300.0130.00616.80
7.2.290.0070.01016.72
7.2.60.0040.00816.61
7.2.00.0030.00919.27
7.1.200.0130.00015.68
7.1.100.0250.00717.50
7.1.70.0110.00317.14
7.1.60.0110.01419.82
7.1.50.0070.01417.04
7.1.00.0000.06722.42
7.0.200.0030.00616.73
7.0.140.0000.08022.00
7.0.60.0070.03719.90
7.0.50.0070.03717.98
7.0.40.0070.06020.08
7.0.30.0300.05720.21
7.0.20.0200.08720.26
7.0.10.0070.08020.24
7.0.00.0030.04020.06
5.6.280.0030.06721.08
5.6.210.0030.04020.53
5.6.200.0000.04718.16
5.6.190.0000.09320.39
5.6.180.0200.05320.61
5.6.170.0370.07320.46
5.6.160.0130.06720.44
5.6.150.0070.07718.12
5.6.140.0030.08018.14
5.6.130.0070.04018.15
5.6.120.0070.03721.00
5.6.110.0070.04721.12
5.6.100.0100.04720.98
5.6.90.0070.08320.97
5.6.80.0100.07720.36
5.5.350.0100.07320.44
5.5.340.0070.08017.99
5.5.330.0070.07020.41
5.5.320.0030.08320.27
5.5.310.0230.05320.28
5.5.300.0030.05017.95
5.5.290.0100.03718.08
5.5.280.0030.05020.80
5.5.270.0270.07020.87
5.5.260.0100.06720.76
5.5.250.0070.05320.65
5.5.240.0030.08320.27
5.4.450.0300.05319.39
5.4.440.0470.04719.57
5.4.430.0200.05019.66
5.4.420.0230.04319.50
5.4.410.0100.05719.53
5.4.400.0930.06018.71
5.4.390.1100.06318.53
5.4.380.0930.05318.65
5.4.370.0130.05318.80
5.4.360.0130.05318.59
5.4.350.0100.05718.74
5.4.340.0230.04318.75
5.4.320.0020.04312.51
5.4.310.0070.04512.50
5.4.300.0100.05012.51
5.4.290.0070.04312.50
5.4.280.0050.03512.41
5.4.270.0100.05412.40
5.4.260.0100.07718.93
5.4.250.0100.05718.87
5.4.240.0070.05718.71
5.4.230.0070.07318.96
5.4.220.0030.06018.73
5.4.210.0200.04318.84
5.4.200.0130.05018.89
5.4.190.0030.06018.56
5.4.180.0100.07018.93
5.4.170.0100.05318.57
5.4.160.0100.07018.68
5.4.150.0100.07018.85
5.4.140.0170.04716.45
5.4.130.0100.05316.44
5.4.120.0030.05716.43
5.4.110.0030.05716.53
5.4.100.0100.04716.37
5.4.90.0070.04716.35
5.4.80.0000.07316.36
5.4.70.0100.04716.46
5.4.60.0100.05716.44
5.4.50.0030.07716.37
5.4.40.0100.06316.45
5.4.30.0070.05316.49
5.4.20.0100.04716.29
5.4.10.0100.05716.49
5.4.00.0030.06315.86
5.3.290.0110.05412.80
5.3.280.0030.05714.69
5.3.270.0130.05014.71
5.3.260.0100.05714.52
5.3.250.0130.05014.67
5.3.240.0200.04314.64
5.3.230.0030.07014.57
5.3.220.0170.04714.64
5.3.210.0030.05714.73
5.3.200.0070.05014.71
5.3.190.0100.05314.48
5.3.180.0200.04714.47
5.3.170.0100.05014.75
5.3.160.0070.05014.39
5.3.150.0100.05014.54
5.3.140.0070.05014.62
5.3.130.0030.06014.52
5.3.120.0170.06314.45
5.3.110.0100.04714.73
5.3.100.0130.06313.95
5.3.90.0170.04314.18
5.3.80.0130.04714.09
5.3.70.0070.05013.99
5.3.60.0070.06014.09
5.3.50.0100.07014.14
5.3.40.0100.05313.86
5.3.30.0030.05013.91
5.3.20.0030.05313.86
5.3.10.0070.04713.67
5.3.00.0070.05013.61
5.2.170.0070.04711.19
5.2.160.0070.05711.23
5.2.150.0130.04711.22
5.2.140.0000.04311.20
5.2.130.0100.03711.27
5.2.120.0070.03711.06
5.2.110.0070.05710.94
5.2.100.0100.05310.93
5.2.90.0100.05711.08
5.2.80.0100.05711.00
5.2.70.0000.04311.08
5.2.60.0030.06011.06
5.2.50.0070.03711.00
5.2.40.0100.04011.09
5.2.30.0070.03711.05
5.2.20.0030.06311.05
5.2.10.0100.03310.77
5.2.00.0030.04010.70
5.1.60.0030.03710.09
5.1.50.0130.0279.97
5.1.40.0000.0409.90
5.1.30.0070.05010.42
5.1.20.0030.06010.52
5.1.10.0130.02710.13
5.1.00.0000.04310.14
5.0.50.0070.0278.53
5.0.40.0030.0278.61
5.0.30.0030.0438.29
5.0.20.0070.0378.25
5.0.10.0100.0238.27
5.0.00.0030.0408.20
4.4.90.0170.0077.47
4.4.80.0070.0277.47
4.4.70.0070.0277.47
4.4.60.0070.0177.47
4.4.50.0070.0177.47
4.4.40.0030.0377.47
4.4.30.0000.0307.47
4.4.20.0030.0307.47
4.4.10.0030.0307.47
4.4.00.0030.0337.47
4.3.110.0030.0307.47
4.3.100.0030.0177.47
4.3.90.0070.0207.47
4.3.80.0030.0337.47
4.3.70.0000.0307.47
4.3.60.0070.0277.47
4.3.50.0070.0177.47
4.3.40.0070.0377.47
4.3.30.0070.0237.47
4.3.20.0000.0307.47
4.3.10.0030.0207.47
4.3.00.0030.0237.29

preferences:
61.92 ms | 400 KiB | 5 Q