3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hello { public function __construct(string $hello, int $k) { $this->hello = $hello; $this->k = $k; } } new Hello(123, 'ss');

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.75
8.3.50.0120.00721.96
8.3.40.0120.00318.93
8.3.30.0040.01118.71
8.3.20.0070.00020.27
8.3.10.0000.00820.53
8.3.00.0000.00823.61
8.2.180.0140.00716.63
8.2.170.0130.00722.96
8.2.160.0070.01322.26
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00820.88
8.2.120.0040.00426.35
8.2.110.0080.00021.02
8.2.100.0090.00317.72
8.2.90.0030.00618.22
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0000.00817.93
8.2.50.0000.00818.09
8.2.40.0040.00422.05
8.2.30.0050.00319.35
8.2.20.0000.00717.66
8.2.10.0000.00817.98
8.2.00.0000.00717.86
8.1.280.0100.00725.92
8.1.270.0040.01422.05
8.1.260.0000.00928.09
8.1.250.0070.00028.09
8.1.240.0000.01217.64
8.1.230.0040.00720.90
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0000.00818.50
8.1.160.0040.00420.63
8.1.150.0040.00420.47
8.1.140.0000.00819.45
8.1.130.0040.00417.57
8.1.120.0030.00317.31
8.1.110.0000.00717.31
8.1.100.0030.00617.33
8.1.90.0030.00817.33
8.1.80.0040.00417.24
8.1.70.0030.00317.25
8.1.60.0040.00417.54
8.1.50.0030.00617.42
8.1.40.0000.00717.49
8.1.30.0030.00517.56
8.1.20.0040.00417.42
8.1.10.0000.00717.54
8.1.00.0030.00617.45
8.0.300.0040.00420.05
8.0.290.0060.00316.63
8.0.280.0050.00318.38
8.0.270.0000.00817.23
8.0.260.0030.00317.12
8.0.250.0000.00716.87
8.0.240.0000.00616.97
8.0.230.0030.00316.94
8.0.220.0030.00316.92
8.0.210.0020.00516.91
8.0.200.0000.00616.96
8.0.190.0050.00316.98
8.0.180.0040.00416.86
8.0.170.0050.00316.82
8.0.160.0000.00816.96
8.0.150.0030.00716.86
8.0.140.0100.00016.86
8.0.130.0060.00013.36
8.0.120.0070.00016.86
8.0.110.0000.00716.78
8.0.100.0000.00716.78
8.0.90.0040.00416.88
8.0.80.0070.00716.95
8.0.70.0000.00716.93
8.0.60.0000.00817.00
8.0.50.0070.00016.82
8.0.30.0110.00717.11
8.0.20.0130.00617.40
8.0.10.0000.00716.75
8.0.00.0100.00916.55
7.4.330.0000.00516.66
7.4.320.0060.00016.41
7.4.300.0030.00316.55
7.4.290.0000.00816.57
7.4.280.0040.00416.32
7.4.270.0040.00416.49
7.4.260.0070.00016.42
7.4.250.0030.00316.35
7.4.240.0040.00416.46
7.4.230.0000.00616.32
7.4.220.0120.00416.43
7.4.210.0060.00616.46
7.4.200.0000.00716.34
7.4.160.0130.00316.53
7.4.150.0120.00617.40
7.4.140.0110.00917.86
7.4.130.0100.00816.31
7.4.120.0100.00816.46
7.4.110.0040.01516.32
7.4.100.0070.01016.52
7.4.90.0100.00716.50
7.4.80.0110.00719.39
7.4.70.0120.00916.28
7.4.60.0130.00316.50
7.4.50.0090.00316.48
7.4.40.0090.00916.55
7.4.30.0070.01116.57
7.4.00.0000.01614.89
7.3.330.0050.00013.21
7.3.320.0050.00013.33
7.3.310.0000.00716.39
7.3.300.0030.00316.25
7.3.290.0000.00716.31
7.3.280.0110.00716.37
7.3.270.0110.00617.40
7.3.260.0100.01016.63
7.3.250.0100.00916.41
7.3.240.0090.01116.43
7.3.230.0110.01116.56
7.3.210.0130.00316.42
7.3.200.0060.00916.50
7.3.190.0120.00316.49
7.3.180.0120.00316.29
7.3.170.0110.00716.43
7.3.160.0150.00616.45
7.3.10.0090.00416.23
7.3.00.0090.00416.66
7.2.330.0140.00316.55
7.2.320.0100.01016.73
7.2.310.0180.00016.58
7.2.300.0070.01316.55
7.2.290.0060.01116.39
7.2.130.0060.01116.58
7.2.120.0050.01116.29
7.2.110.0050.00816.61
7.2.100.0080.00716.46
7.2.90.0100.01116.50
7.2.80.0040.00916.59
7.2.70.0080.00816.63
7.2.60.0100.00616.71
7.2.50.0100.01016.72
7.2.40.0090.00616.63
7.2.30.0070.01116.53
7.2.20.0050.01116.62
7.2.10.0120.00716.24
7.2.00.0070.00617.50
7.1.250.0070.00715.63
7.1.200.0000.01215.45
7.1.100.0070.01117.78
7.1.70.0000.01016.89
7.1.60.0030.01119.40
7.1.50.0040.00716.64
7.1.00.0070.07322.42
7.0.200.0490.00314.70
7.0.60.0270.08319.79
7.0.50.0100.08317.91
7.0.40.0100.07720.27
7.0.30.0200.06020.24
7.0.20.0300.08020.27
7.0.10.0070.04020.24
7.0.00.0130.03320.26
5.6.280.0000.04321.13
5.6.210.0070.08320.53
5.6.200.0030.04018.29
5.6.190.0000.04720.50
5.6.180.0270.04020.61
5.6.170.0230.04320.45
5.6.160.0070.06320.50
5.6.150.0000.04718.15
5.6.140.0030.03718.17
5.6.130.0100.04718.19
5.6.120.0070.06320.97
5.6.110.0070.07721.02
5.6.100.0130.07721.01
5.6.90.0100.08020.98
5.6.80.0030.07720.37
5.5.350.0030.09020.41
5.5.340.0030.09018.09
5.5.330.0100.06020.21
5.5.320.0570.07320.20
5.5.310.0270.08020.29
5.5.300.0130.07317.98
5.5.290.0070.08017.98
5.5.280.0030.04020.98
5.5.270.0030.09020.76
5.5.260.0100.06720.72
5.5.250.0030.07720.61
5.5.240.0330.03020.35

preferences:
41.65 ms | 401 KiB | 5 Q