3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class { public function __destruct() { echo '__destruct called' . "\n"; } }; $a->__destruct(); $a = null;

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.50
8.3.50.0170.00318.23
8.3.40.0040.01418.71
8.3.30.0110.00418.65
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0000.00826.16
8.2.180.0070.00725.92
8.2.170.0170.00318.59
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0120.00319.77
8.2.110.0090.00021.03
8.2.100.0070.00417.78
8.2.90.0030.00517.91
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0000.00718.05
8.2.50.0000.00818.07
8.2.40.0060.00317.89
8.2.30.0040.00417.99
8.2.20.0070.00017.94
8.2.10.0030.00619.23
8.2.00.0030.00319.28
8.1.280.0110.00425.92
8.1.270.0000.00822.20
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00019.52
8.1.230.0060.00622.82
8.1.220.0080.00017.74
8.1.210.0130.00018.77
8.1.200.0030.00617.23
8.1.190.0080.00417.23
8.1.180.0050.00318.10
8.1.170.0030.00518.70
8.1.160.0000.00818.89
8.1.150.0000.00718.89
8.1.140.0030.00718.95
8.1.130.0000.00720.12
8.1.120.0030.00517.35
8.1.110.0000.00917.35
8.1.100.0000.00717.38
8.1.90.0000.00717.43
8.1.80.0000.00717.47
8.1.70.0000.00717.44
8.1.60.0000.00917.57
8.1.50.0030.00517.40
8.1.40.0040.00417.54
8.1.30.0040.00417.57
8.1.20.0030.00617.52
8.1.10.0000.00817.48
8.1.00.0030.00517.37
8.0.300.0040.00420.03
8.0.290.0000.01016.75
8.0.280.0040.00420.18
8.0.270.0000.00717.94
8.0.260.0060.00018.53
8.0.250.0070.00016.95
8.0.240.0060.00316.89
8.0.230.0030.00316.95
8.0.220.0070.00016.88
8.0.210.0030.00316.91
8.0.200.0070.00016.98
8.0.190.0040.00416.94
8.0.180.0000.00816.85
8.0.170.0090.00016.91
8.0.160.0000.00916.91
8.0.150.0040.00416.72
8.0.140.0030.00316.90
8.0.130.0000.00513.30
8.0.120.0050.00316.87
8.0.110.0030.00316.80
8.0.100.0050.00216.75
8.0.90.0000.00816.83
8.0.80.0110.00816.86
8.0.70.0000.01016.84
8.0.60.0070.00016.71
8.0.50.0040.00416.69
8.0.30.0270.00816.77
8.0.20.0310.01016.86
8.0.10.0200.01216.93
8.0.00.0320.00416.96
7.4.330.0020.00215.55
7.4.320.0030.00316.58
7.4.300.0000.00616.61
7.4.290.0040.00416.53
7.4.280.0040.00416.59
7.4.270.0060.00016.50
7.4.260.0050.00313.25
7.4.250.0000.00716.57
7.4.240.0000.00816.57
7.4.230.0020.00516.47
7.4.220.0070.00016.25
7.4.210.0100.01016.38
7.4.200.0000.00716.69
7.4.160.0310.00416.46
7.4.150.0280.00616.67
7.4.140.0240.01116.25
7.4.130.0290.01116.48
7.4.120.0250.00616.52
7.4.110.0210.01216.29
7.4.100.0320.00316.57
7.4.90.0220.00816.45
7.4.80.0200.01016.35
7.4.70.0170.01416.37
7.4.60.0360.00016.33
7.4.50.0250.00416.37
7.4.40.0230.00516.35
7.4.30.0180.01016.41
7.4.20.0170.01216.47
7.4.10.0190.00816.24
7.4.00.0160.01116.43
7.3.330.0050.00316.13
7.3.320.0050.00013.06
7.3.310.0070.00016.11
7.3.300.0030.00316.35
7.3.290.0090.00816.25
7.3.280.0140.01716.23
7.3.270.0160.01716.18
7.3.260.0200.01216.21
7.3.250.0180.01416.25
7.3.240.0190.00916.17
7.3.230.0270.00916.16
7.3.220.0230.00916.16
7.3.210.0170.01716.06
7.3.200.0180.01516.12
7.3.190.0320.00316.14
7.3.180.0190.01216.11
7.3.170.0240.00716.07
7.3.160.0280.00916.12
7.3.150.0200.01116.09
7.3.140.0250.00816.11
7.3.130.0240.00616.08
7.3.120.0310.00316.12
7.3.110.0210.00715.97
7.3.100.0250.01116.04
7.3.90.0260.00016.40
7.3.80.0250.01016.16
7.3.70.0240.00516.24
7.3.60.0130.01616.33
7.3.50.0270.00316.30
7.3.40.0230.01016.27
7.3.30.0280.00616.22
7.3.20.0190.00816.18
7.3.10.0200.00816.24
7.3.00.0240.00316.18

preferences:
54.54 ms | 400 KiB | 5 Q