3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Runnable { protected function __construct() { echo 'New runnable object has been created'.PHP_EOL; } } class Thread implements Runnable { protected function __construct() { echo 'New thread has been created'.PHP_EOL; } } $thread = new Thread();

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.0090.00916.63
8.3.50.0190.00022.00
8.3.40.0110.00418.46
8.3.30.0070.01118.53
8.3.20.0030.00520.16
8.3.10.0080.00023.56
8.3.00.0050.00319.70
8.2.180.0090.00918.25
8.2.170.0150.00622.96
8.2.160.0070.00720.12
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0090.00019.44
8.2.120.0080.00026.35
8.2.110.0060.00322.25
8.2.100.0060.00617.92
8.2.90.0080.00019.05
8.2.80.0060.00317.97
8.2.70.0000.00917.50
8.2.60.0000.00917.91
8.2.50.0040.00418.07
8.2.40.0000.00920.43
8.2.30.0000.00720.67
8.2.20.0040.00417.48
8.2.10.0070.00017.98
8.2.00.0040.00418.04
8.1.280.0100.01025.92
8.1.270.0030.00520.38
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0090.00023.96
8.1.230.0040.00719.02
8.1.220.0030.00617.74
8.1.210.0070.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.00
8.1.180.0040.00418.10
8.1.170.0080.00018.63
8.1.160.0070.00020.69
8.1.150.0040.00418.77
8.1.140.0000.00819.55
8.1.130.0030.00317.67
8.1.120.0000.00717.40
8.1.110.0000.00717.36
8.1.100.0050.00217.37
8.1.90.0060.00317.40
8.1.80.0030.00517.38
8.1.70.0000.00717.43
8.1.60.0070.00017.46
8.1.50.0000.00817.41
8.1.40.0040.00417.49
8.1.30.0060.00317.56
8.1.20.0020.00517.60
8.1.10.0080.00017.28
8.1.00.0030.00617.20
8.0.300.0050.00518.77
8.0.290.0000.00716.75
8.0.280.0070.00018.37
8.0.270.0030.00317.18
8.0.260.0030.00317.18
8.0.250.0070.00016.84
8.0.240.0040.00416.91
8.0.230.0040.00416.92
8.0.220.0080.00016.87
8.0.210.0000.00716.92
8.0.200.0000.00616.95
8.0.190.0070.00016.89
8.0.180.0000.00716.89
8.0.170.0040.00416.89
8.0.160.0000.00716.88
8.0.150.0040.00416.81
8.0.140.0020.00516.85
8.0.130.0000.00513.36
8.0.120.0030.00616.75
8.0.110.0070.00016.76
8.0.100.0040.00416.73
8.0.90.0000.00816.95
8.0.80.0060.00916.79
8.0.70.0040.00416.77
8.0.60.0040.00416.95
8.0.50.0000.00716.92
8.0.30.0080.00916.95
8.0.20.0090.00917.40
8.0.10.0040.00417.07
8.0.00.0080.01016.61
7.4.330.0050.00016.75
7.4.320.0000.00816.54
7.4.300.0050.00216.49
7.4.290.0030.00316.61
7.4.280.0030.00516.52
7.4.270.0030.00316.46
7.4.260.0030.00516.41
7.4.250.0000.00816.29
7.4.240.0040.00416.43
7.4.230.0000.00716.50
7.4.220.0170.01016.46
7.4.210.0000.01316.52
7.4.200.0000.00716.51
7.4.160.0060.00916.49
7.4.150.0100.01417.40
7.4.140.0100.01117.86
7.4.130.0110.00516.40
7.4.120.0120.00616.40
7.4.110.0100.00716.33
7.4.100.0100.00716.37
7.4.90.0130.00316.56
7.4.80.0060.01319.39
7.4.70.0090.01016.41
7.4.60.0120.00916.49
7.4.50.0070.01116.48
7.4.40.0060.01016.53
7.4.30.0130.01016.21
7.4.00.0080.00814.79
7.3.330.0000.00513.11
7.3.320.0030.00313.22
7.3.310.0030.00316.27
7.3.300.0070.00016.29
7.3.290.0070.01116.22
7.3.280.0090.01016.26
7.3.270.0030.01717.40
7.3.260.0120.00616.37
7.3.250.0110.01916.36
7.3.240.0130.00716.39
7.3.230.0120.00616.48
7.3.210.0110.00616.25
7.3.200.0110.00616.38
7.3.190.0070.01316.26
7.3.180.0130.00316.43
7.3.170.0100.00716.43
7.3.160.0140.00316.41
7.2.330.0070.01116.22
7.2.320.0030.01316.44
7.2.310.0100.00716.38
7.2.300.0060.01116.46
7.2.290.0060.01216.41
7.2.60.0070.00716.87
7.1.200.0060.00615.81
7.1.70.0040.00416.65
7.1.60.0130.01019.52
7.1.50.0200.00316.46
7.1.00.0000.08022.45
7.0.200.0040.00416.75
7.0.60.0170.07719.82
7.0.50.0070.04317.87
7.0.40.0130.06720.40
7.0.30.0230.08720.25
7.0.20.0330.08020.24
7.0.10.0130.08720.06
7.0.00.0170.07320.09
5.6.210.0200.05720.73
5.6.200.0030.09318.19
5.6.190.0070.05720.41
5.6.180.0230.08020.35
5.6.170.0400.07720.41
5.6.160.0100.08020.46
5.6.150.0100.05318.11
5.6.140.0070.07018.18
5.6.130.0000.04718.27
5.6.120.0130.08021.04
5.6.110.0100.08020.97
5.6.100.0200.07021.13
5.6.90.0070.08020.97
5.6.80.0070.08020.39
5.5.350.0300.07320.38
5.5.340.0100.04018.07
5.5.330.0000.04320.29
5.5.320.0570.07720.27
5.5.310.0230.03720.24
5.5.300.0100.07718.04
5.5.290.0030.06318.04
5.5.280.0170.07320.96
5.5.270.0170.06720.67
5.5.260.0030.07720.98
5.5.250.0100.08020.63
5.5.240.4030.04020.16

preferences:
44.53 ms | 401 KiB | 5 Q