3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct () { $this->call = new class(){}; } public function __destruct() { echo 'Destruct: ' . get_class($this) . PHP_EOL; } } class B { public function __destruct() { echo 'Destruct: ' . get_class($this) . PHP_EOL; } } function test() { new A; new B; } test(); echo "Exit\n";

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.00716.88
8.3.50.0150.00521.34
8.3.40.0070.00718.97
8.3.30.0110.00418.63
8.3.20.0040.00420.35
8.3.10.0050.00221.90
8.3.00.0080.00021.75
8.2.180.0060.00916.88
8.2.170.0100.00722.96
8.2.160.0090.00620.31
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00321.00
8.2.120.0000.00826.35
8.2.110.0030.00719.33
8.2.100.0080.00418.03
8.2.90.0060.00319.26
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0000.00718.03
8.2.50.0080.00318.09
8.2.40.0050.00322.15
8.2.30.0080.00019.49
8.2.20.0080.00017.60
8.2.10.0050.00218.04
8.2.00.0070.00018.07
8.1.280.0140.00325.92
8.1.270.0100.00721.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0100.00022.06
8.1.230.0080.00317.64
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0100.00018.50
8.1.160.0040.00420.70
8.1.150.0040.00418.79
8.1.140.0000.00819.41
8.1.130.0070.00017.55
8.1.120.0040.00417.46
8.1.110.0030.00417.48
8.1.100.0000.00717.46
8.1.90.0070.00017.45
8.1.80.0060.00317.47
8.1.70.0000.00717.35
8.1.60.0000.00817.59
8.1.50.0060.00317.39
8.1.40.0040.00417.52
8.1.30.0000.00917.57
8.1.20.0060.00317.48
8.1.10.0000.00717.55
8.1.00.0050.00217.52
8.0.300.0040.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.31
8.0.270.0050.00217.16
8.0.260.0000.00817.16
8.0.250.0000.00716.89
8.0.240.0040.00416.84
8.0.230.0000.00716.89
8.0.220.0040.00416.76
8.0.210.0000.00716.83
8.0.200.0050.00316.88
8.0.190.0000.00816.96
8.0.180.0040.00416.88
8.0.170.0000.00816.86
8.0.160.0040.00416.75
8.0.150.0040.00416.64
8.0.140.0000.00716.70
8.0.130.0060.00013.23
8.0.120.0040.00416.84
8.0.110.0000.00716.89
8.0.100.0040.00416.72
8.0.90.0040.00416.76
8.0.80.0090.01316.84
8.0.70.0000.00816.74
8.0.60.0040.00416.66
8.0.50.0000.00816.87
8.0.30.0110.00816.95
8.0.20.0170.00317.40
8.0.10.0080.00016.88
8.0.00.0100.00716.90
7.4.330.0050.00016.85
7.4.320.0030.00316.44
7.4.300.0030.00316.51
7.4.290.0000.00716.44
7.4.280.0060.00316.33
7.4.270.0000.00816.59
7.4.260.0030.00316.38
7.4.250.0040.00416.38
7.4.240.0080.00016.52
7.4.230.0070.00016.50
7.4.220.0140.00316.61
7.4.210.0030.01616.60
7.4.200.0000.00716.62
7.4.160.0100.00716.52
7.4.150.0110.00617.40
7.4.140.0110.00917.86
7.4.130.0120.00716.47
7.4.120.0100.00716.52
7.4.110.0100.00716.57
7.4.100.0150.00616.47
7.4.90.0140.00316.74
7.4.80.0090.01219.39
7.4.70.0090.00916.71
7.4.60.0030.01316.59
7.4.50.0070.01116.56
7.4.40.0030.01316.61
7.4.30.0050.01516.58
7.4.00.0070.01014.91
7.3.330.0040.00413.02
7.3.320.0060.00013.26
7.3.310.0000.00716.14
7.3.300.0000.00616.20
7.3.290.0070.00916.30
7.3.280.0080.01016.26
7.3.270.0100.00717.40
7.3.260.0090.01616.36
7.3.250.0070.01216.45
7.3.240.0050.01216.42
7.3.230.0060.01116.39
7.3.210.0070.01116.49
7.3.200.0030.01619.39
7.3.190.0060.00916.57
7.3.180.0060.01016.36
7.3.170.0130.00916.38
7.3.160.0100.00716.51
7.2.330.0100.01316.77
7.2.320.0090.00916.32
7.2.310.0070.01016.59
7.2.300.0080.00816.40
7.2.290.0030.01316.61
7.2.60.0040.00816.66
7.2.00.0070.00719.10
7.1.200.0070.00415.66
7.1.100.0040.01118.26
7.1.70.0140.00017.18
7.1.60.0040.01519.40
7.1.50.0040.01817.00
7.1.00.0000.08022.41
7.0.200.0350.00714.68
7.0.60.0330.07719.79
7.0.50.0070.08017.86
7.0.40.0100.06320.18
7.0.30.0170.04720.24
7.0.20.0370.08020.05
7.0.10.0100.08720.23
7.0.00.0100.06020.06
5.6.280.0130.06321.05
5.6.210.0070.07720.51
5.6.200.0070.06318.22
5.6.190.0100.08020.43
5.6.180.0200.04020.48
5.6.170.0230.04320.62
5.6.160.0030.05720.54
5.6.150.0100.04318.15
5.6.140.0070.08318.28
5.6.130.0030.08718.15
5.6.120.0070.05020.98
5.6.110.0130.07321.14
5.6.100.0030.08021.11
5.6.90.0100.08321.13
5.6.80.0070.04720.54
5.5.350.0170.08020.44
5.5.340.0100.06317.96
5.5.330.0070.05320.30
5.5.320.0500.04020.34
5.5.310.0270.04020.34
5.5.300.0100.07317.97
5.5.290.0030.04318.02
5.5.280.0030.05020.90
5.5.270.0270.04020.80
5.5.260.0000.04320.85
5.5.250.0070.08720.61
5.5.240.0270.07020.19

preferences:
63.61 ms | 401 KiB | 5 Q