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 extends 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.0040.01416.50
8.3.50.0070.00717.94
8.3.40.0110.00418.56
8.3.30.0080.00818.75
8.3.20.0000.00820.25
8.3.10.0060.00323.64
8.3.00.0000.00819.54
8.2.180.0110.01118.43
8.2.170.0000.01422.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0090.00019.00
8.2.120.0050.00326.35
8.2.110.0060.01522.25
8.2.100.0110.00017.66
8.2.90.0090.00019.09
8.2.80.0060.00317.97
8.2.70.0030.00617.50
8.2.60.0000.00817.91
8.2.50.0060.00318.07
8.2.40.0050.00520.48
8.2.30.0000.00720.60
8.2.20.0000.00717.68
8.2.10.0000.00717.99
8.2.00.0000.00717.89
8.1.280.0040.01425.92
8.1.270.0040.00420.24
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0070.00323.79
8.1.230.0070.00322.11
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.09
8.1.180.0070.00318.10
8.1.170.0030.00618.50
8.1.160.0000.00720.50
8.1.150.0000.00718.86
8.1.140.0060.00319.39
8.1.130.0030.00317.67
8.1.120.0040.00417.40
8.1.110.0040.00417.34
8.1.100.0000.00717.38
8.1.90.0060.00317.38
8.1.80.0040.00417.20
8.1.70.0000.00717.29
8.1.60.0040.00417.44
8.1.50.0030.00617.43
8.1.40.0000.00817.32
8.1.30.0030.00517.59
8.1.20.0040.00417.48
8.1.10.0000.00817.41
8.1.00.0040.00417.35
8.0.300.0090.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.50
8.0.270.0040.00417.25
8.0.260.0030.00317.12
8.0.250.0030.00316.86
8.0.240.0040.00416.91
8.0.230.0000.00716.81
8.0.220.0040.00416.88
8.0.210.0030.00616.82
8.0.200.0030.00316.92
8.0.190.0070.00016.89
8.0.180.0050.00216.89
8.0.170.0040.00416.92
8.0.160.0030.00316.95
8.0.150.0000.00816.86
8.0.140.0000.00716.82
8.0.130.0030.00613.27
8.0.120.0030.00616.84
8.0.110.0020.00516.93
8.0.100.0040.00416.92
8.0.90.0040.00416.78
8.0.80.0040.01216.87
8.0.70.0000.00716.84
8.0.60.0030.00516.99
8.0.50.0040.00416.70
8.0.30.0130.00616.96
8.0.20.0110.00817.40
8.0.10.0070.00016.72
8.0.00.0080.00916.68
7.4.330.0050.00016.91
7.4.320.0000.00616.38
7.4.300.0000.00616.52
7.4.290.0070.00016.54
7.4.280.0030.00616.52
7.4.270.0070.00016.41
7.4.260.0000.00716.48
7.4.250.0080.00016.47
7.4.240.0050.00216.53
7.4.230.0070.00016.42
7.4.220.0170.00316.45
7.4.210.0080.00516.53
7.4.200.0030.00316.53
7.4.160.0080.00816.47
7.4.150.0140.00417.40
7.4.140.0120.01317.86
7.4.130.0120.00516.53
7.4.120.0140.00516.43
7.4.110.0040.01316.36
7.4.100.0120.00916.28
7.4.90.0100.01316.61
7.4.80.0040.01419.39
7.4.70.0000.02316.41
7.4.60.0090.00916.39
7.4.50.0030.01016.46
7.4.40.0060.01016.56
7.4.30.0080.00816.66
7.4.00.0090.00714.86
7.3.330.0000.00513.26
7.3.320.0000.00613.16
7.3.310.0060.00016.19
7.3.300.0050.00216.28
7.3.290.0080.00716.31
7.3.280.0080.01016.32
7.3.270.0150.00817.40
7.3.260.0140.00416.43
7.3.250.0090.01116.50
7.3.240.0120.00716.49
7.3.230.0080.00816.39
7.3.210.0000.01616.26
7.3.200.0030.01416.25
7.3.190.0040.01216.38
7.3.180.0150.00616.47
7.3.170.0060.01216.27
7.3.160.0070.01016.48
7.3.120.0100.00714.96
7.3.110.0140.00314.91
7.3.100.0060.01014.61
7.3.90.0030.00714.63
7.3.80.0060.01014.59
7.3.70.0080.00014.84
7.3.60.0000.01514.68
7.3.50.0090.00614.80
7.3.40.0070.01014.43
7.3.30.0030.00914.85
7.3.20.0070.01016.69
7.3.10.0090.00616.59
7.3.00.0060.00616.29
7.2.330.0110.00616.30
7.2.320.0140.00316.64
7.2.310.0130.00316.70
7.2.300.0060.01116.56
7.2.290.0030.01616.43
7.2.250.0090.00914.71
7.2.240.0120.00614.75
7.2.230.0090.00914.96
7.2.220.0040.01114.96
7.2.210.0070.01014.81
7.2.200.0090.00014.88
7.2.190.0070.00714.75
7.2.180.0140.00014.83
7.2.170.0070.00414.94
7.2.60.0090.00316.74
7.2.00.0000.00919.37
7.1.330.0080.00815.75
7.1.320.0070.00715.77
7.1.310.0030.01115.64
7.1.300.0000.00915.45
7.1.290.0090.00415.48
7.1.280.0030.00715.41
7.1.270.0100.00415.61
7.1.260.0000.01515.63
7.1.200.0060.00615.69
7.1.100.0000.01117.63
7.1.70.0000.01017.02
7.1.60.0090.01519.52
7.1.50.0070.01416.91
7.1.00.0100.07022.32
7.0.200.0040.00416.67
7.0.60.0100.07719.96
7.0.50.0100.08017.88
7.0.40.0030.08320.40
7.0.30.0270.07720.11
7.0.20.0330.07720.09
7.0.10.0170.07720.24
7.0.00.0070.04720.29
5.6.280.0000.03321.08
5.6.210.0170.07320.61
5.6.200.0100.08018.29
5.6.190.0100.07020.57
5.6.180.0300.08020.34
5.6.170.0330.08020.56
5.6.160.0070.04020.50
5.6.150.0070.08318.18
5.6.140.0070.08018.18
5.6.130.0030.04318.11
5.6.120.0100.08020.95
5.6.110.0030.08721.05
5.6.100.0070.06020.96
5.6.90.0100.05720.99
5.6.80.0030.08320.40
5.5.350.0230.08020.39
5.5.340.0100.07717.96
5.5.330.0030.04720.28
5.5.320.0600.06720.38
5.5.310.0200.06020.30
5.5.300.0130.07317.91
5.5.290.0030.07017.99
5.5.280.0030.04020.88
5.5.270.0230.06320.95
5.5.260.0070.07720.77
5.5.250.0070.04020.62
5.5.240.3870.04320.13

preferences:
43.29 ms | 401 KiB | 5 Q