3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function deleteMe($obj) { unset($obj); } } class Bar extends Foo { public function __construct() { $foo = new Foo(); var_dump($foo); Foo::deleteMe($foo); gc_collect_cycles(); var_dump($foo); } } $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.0140.00718.30
8.3.50.0110.00421.08
8.3.40.0040.01118.75
8.3.30.0130.00718.93
8.3.20.0070.00020.38
8.3.10.0040.00422.04
8.3.00.0080.00022.39
8.2.180.0110.00416.36
8.2.170.0070.00722.96
8.2.160.0100.00319.26
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0090.00026.16
8.2.120.0040.00419.66
8.2.110.0060.00322.26
8.2.100.0040.00717.91
8.2.90.0000.00719.22
8.2.80.0040.00417.97
8.2.70.0060.00317.49
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0000.00718.22
8.2.30.0040.00418.05
8.2.20.0040.00417.60
8.2.10.0030.00517.68
8.2.00.0040.00417.66
8.1.280.0040.01125.92
8.1.270.0040.00422.04
8.1.260.0100.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00718.57
8.1.230.0080.00318.99
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0000.00917.22
8.1.190.0040.00417.41
8.1.180.0000.00820.43
8.1.170.0040.00418.36
8.1.160.0000.00722.14
8.1.150.0040.00418.48
8.1.140.0000.00717.30
8.1.130.0000.00717.89
8.1.120.0030.00317.26
8.1.110.0070.00017.34
8.1.100.0030.00517.35
8.1.90.0080.00017.32
8.1.80.0050.00317.27
8.1.70.0000.00717.33
8.1.60.0060.00317.64
8.1.50.0040.00417.50
8.1.40.0080.00017.39
8.1.30.0000.00817.54
8.1.20.0030.00617.66
8.1.10.0000.00717.61
8.1.00.0040.00417.39
8.0.300.0000.00718.77
8.0.290.0080.00017.18
8.0.280.0040.00418.39
8.0.270.0000.00717.12
8.0.260.0060.00016.77
8.0.250.0070.00016.86
8.0.240.0040.00416.89
8.0.230.0040.00416.91
8.0.220.0070.00016.89
8.0.210.0030.00316.80
8.0.200.0030.00316.88
8.0.190.0040.00416.89
8.0.180.0000.00716.87
8.0.170.0000.00816.84
8.0.160.0070.00016.85
8.0.150.0040.00316.81
8.0.140.0000.00716.80
8.0.130.0060.00313.21
8.0.120.0000.00716.82
8.0.110.0070.00016.86
8.0.100.0090.00016.79
8.0.90.0050.00316.82
8.0.80.0130.00716.89
8.0.70.0080.00016.70
8.0.60.0000.00716.73
8.0.50.0040.00416.82
8.0.30.0090.00917.00
8.0.20.0070.01217.40
8.0.10.0040.00416.95
8.0.00.0070.01116.80
7.4.330.0000.00515.03
7.4.320.0030.00316.47
7.4.300.0000.00616.62
7.4.290.0050.00216.59
7.4.280.0000.00716.61
7.4.270.0000.00616.65
7.4.260.0070.00016.61
7.4.250.0040.00416.57
7.4.240.0070.00016.45
7.4.230.0000.00716.70
7.4.220.0060.00916.50
7.4.210.0070.00716.54
7.4.200.0000.00716.41
7.4.190.0050.00216.40
7.4.160.0170.00716.52
7.4.150.0080.01217.40
7.4.140.0090.01117.86
7.4.130.0120.00516.49
7.4.120.0090.00916.46
7.4.110.0070.01016.46
7.4.100.0110.00616.47
7.4.90.0070.01016.38
7.4.80.0070.01419.39
7.4.70.0070.01416.71
7.4.60.0070.01016.57
7.4.50.0040.00416.43
7.4.40.0030.01222.77
7.4.30.0100.01016.44
7.4.00.0060.00615.11
7.3.330.0000.00513.23
7.3.320.0000.00613.03
7.3.310.0030.00316.24
7.3.300.0030.00516.09
7.3.290.0000.01316.23
7.3.280.0130.00816.23
7.3.270.0070.01017.40
7.3.260.0030.01416.21
7.3.250.0110.00616.21
7.3.240.0000.01916.48
7.3.230.0100.00716.39
7.3.210.0130.00916.23
7.3.200.0060.01019.39
7.3.190.0110.01116.10
7.3.180.0120.00416.22
7.3.170.0060.01016.27
7.3.160.0060.00916.19
7.3.120.0070.01014.66
7.3.110.0070.01014.63
7.3.100.0030.01014.59
7.3.90.0000.01114.86
7.3.80.0090.00014.84
7.3.70.0100.00014.80
7.3.60.0030.00614.84
7.3.50.0040.01114.73
7.3.40.0090.00014.80
7.3.30.0070.00714.61
7.3.20.0070.00416.54
7.3.10.0060.01016.62
7.3.00.0030.01016.47
7.2.330.0110.00716.57
7.2.320.0040.01216.46
7.2.310.0070.01116.54
7.2.300.0100.01316.30
7.2.290.0100.00716.49
7.2.240.0070.01114.48
7.2.230.0000.01114.84
7.2.220.0140.00315.12
7.2.210.0070.01015.20
7.2.200.0110.00414.99
7.2.190.0070.00714.92
7.2.180.0070.00714.98
7.2.170.0070.00715.05
7.2.160.0090.00614.99
7.2.150.0000.01416.75
7.2.140.0060.00616.79
7.2.130.0110.00416.71
7.2.120.0070.00716.81
7.2.110.0070.00716.81
7.2.100.0040.01116.89
7.2.90.0040.01116.88
7.2.80.0000.01216.83
7.2.70.0030.01016.90
7.2.60.0010.00816.95
7.2.50.0040.01116.61
7.2.40.0080.00816.80
7.2.30.0070.00316.93
7.2.20.0030.01216.77
7.2.10.0070.01016.67
7.2.00.0060.00918.11
7.1.330.0100.00315.89
7.1.320.0070.01015.98
7.1.310.0100.00315.89
7.1.300.0030.00715.87
7.1.290.0110.00315.93
7.1.280.0090.00315.87
7.1.270.0100.00415.50
7.1.260.0000.01115.93
7.1.250.0060.00615.55
7.1.200.0060.00615.49
7.1.100.0280.00617.31
7.1.70.0070.00417.15
7.1.60.0040.00716.89
7.1.50.0070.00717.02
7.1.00.0130.07022.45
7.0.200.0070.01316.61
7.0.140.0000.09722.01
7.0.60.0030.05319.93
7.0.50.0100.07317.85
7.0.40.0030.04720.12
7.0.30.0230.07720.24
7.0.20.0300.03320.10
7.0.10.0070.08720.22
7.0.00.0000.05020.09
5.6.280.0100.06720.86
5.6.210.0130.07320.70
5.6.200.0100.03318.18
5.6.190.0030.05720.63
5.6.180.0300.04320.63
5.6.170.0230.07020.45
5.6.160.0100.06020.50
5.6.150.0000.08018.18
5.6.140.0000.04318.18
5.6.130.0100.07718.17
5.6.120.0030.08721.06
5.6.110.0170.07321.05
5.6.100.0070.07321.01
5.6.90.0170.07721.03
5.6.80.0070.03720.41
5.5.350.0270.06720.32
5.5.340.0070.05317.96
5.5.330.0000.06320.40
5.5.320.0230.05320.51
5.5.310.0300.06320.32
5.5.300.0070.05717.99
5.5.290.0130.04717.98
5.5.280.0130.07020.88
5.5.270.0170.08020.69
5.5.260.0070.08720.87
5.5.250.0070.08720.49
5.5.240.0030.08020.03
5.4.450.0230.07019.55
5.4.440.0470.06019.48
5.4.430.0330.07319.54
5.4.420.0730.06319.20
5.4.410.0000.06319.08
5.4.400.1200.05018.87
5.4.390.1400.08018.85
5.4.380.0370.04718.53
5.4.370.0170.05018.53
5.4.360.0230.04018.66
5.4.350.0200.05018.56
5.4.340.0130.05318.54
5.4.320.0070.03512.50
5.4.310.0050.03912.50
5.4.300.0100.04512.50
5.4.290.0050.05112.50
5.4.280.0050.03612.39
5.4.270.0070.03612.40
5.4.260.0170.06718.84
5.4.250.0130.04718.99
5.4.240.0070.05318.84
5.4.230.0130.04718.76
5.4.220.0130.05018.94
5.4.210.0170.04718.96
5.4.200.0200.05719.02
5.4.190.0170.05018.76
5.4.180.0030.05319.02
5.4.170.0070.07718.74
5.4.160.0130.07018.97
5.4.150.0070.08018.83
5.4.140.0070.05316.61
5.4.130.0100.04716.47
5.4.120.0070.04716.28
5.4.110.0070.05016.44
5.4.100.0100.05016.63
5.4.90.0130.04316.71
5.4.80.0030.05716.42
5.4.70.0130.05016.37
5.4.60.0100.05016.34
5.4.50.0070.04716.39
5.4.40.0100.04716.52
5.4.30.0130.04316.54
5.4.20.0070.07016.36
5.4.10.0030.06016.59
5.4.00.0130.04715.84
5.3.290.0090.04012.80
5.3.280.0100.04714.50
5.3.270.0170.04314.79
5.3.260.0170.05014.60
5.3.250.0230.03314.63
5.3.240.0030.08014.52
5.3.230.0030.05314.59
5.3.220.0130.05014.56
5.3.210.0070.05014.40
5.3.200.0030.07014.57
5.3.190.0100.05014.56
5.3.180.0100.05014.40
5.3.170.0100.04714.48
5.3.160.0070.05314.54
5.3.150.0200.05314.54
5.3.140.0200.04314.64
5.3.130.0130.04714.54
5.3.120.0070.06014.66
5.3.110.0030.05714.55
5.3.100.0170.04314.12
5.3.90.0070.05014.10
5.3.80.0000.06014.11
5.3.70.0070.05313.93
5.3.60.0070.05313.90
5.3.50.0130.04313.96
5.3.40.0070.05013.86
5.3.30.0070.05013.98
5.3.20.0100.05013.66
5.3.10.0100.06313.81
5.3.00.0130.04713.47
5.2.170.0000.04711.13
5.2.160.0030.04011.21
5.2.150.0130.03711.23
5.2.140.0100.05011.23
5.2.130.0130.05711.19
5.2.120.0130.04011.06
5.2.110.0070.04011.07
5.2.100.0030.04311.21
5.2.90.0070.04711.27
5.2.80.0100.05311.27
5.2.70.0130.04711.07
5.2.60.0070.04311.27
5.2.50.0030.05311.10
5.2.40.0100.04010.97
5.2.30.0130.03311.04
5.2.20.0100.03711.14
5.2.10.0100.03310.95
5.2.00.0070.04710.95
5.1.60.0030.03310.16
5.1.50.0070.03010.07
5.1.40.0100.03010.02
5.1.30.0100.04710.42
5.1.20.0130.03010.44
5.1.10.0070.04010.27
5.1.00.0030.03710.02
5.0.50.0030.0308.64
5.0.40.0100.0338.50
5.0.30.0030.0478.18
5.0.20.0000.0308.29
5.0.10.0030.0408.14
5.0.00.0100.0538.20
4.4.90.0000.0278.13
4.4.80.0000.0308.13
4.4.70.0030.0208.13
4.4.60.0070.0278.13
4.4.50.0030.0208.13
4.4.40.0000.0378.13
4.4.30.0030.0208.13
4.4.20.0030.0238.13
4.4.10.0070.0178.13
4.4.00.0030.0438.13
4.3.110.0030.0238.13
4.3.100.0100.0208.13
4.3.90.0000.0238.13
4.3.80.0030.0338.13
4.3.70.0030.0238.13
4.3.60.0070.0178.13
4.3.50.0030.0208.13
4.3.40.0000.0408.13
4.3.30.0070.0178.13
4.3.20.0030.0238.13
4.3.10.0000.0238.13
4.3.00.0070.0237.63

preferences:
49.96 ms | 401 KiB | 5 Q