3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Apple{ function __construct(string $name) { return "Hello " + $name; } } (new Apple(1));

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.0150.00716.50
8.3.50.0120.00522.11
8.3.40.0060.01219.02
8.3.30.0090.00618.70
8.3.20.0070.00020.08
8.3.10.0000.00821.77
8.3.00.0060.00319.15
8.2.180.0040.01118.05
8.2.170.0100.00322.96
8.2.160.0070.00722.12
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0110.00017.63
8.2.120.0040.00426.35
8.2.110.0090.00922.27
8.2.100.0080.00417.93
8.2.90.0020.00519.08
8.2.80.0050.00317.97
8.2.70.0000.01217.50
8.2.60.0000.01217.67
8.2.50.0000.00918.07
8.2.40.0000.00719.21
8.2.30.0030.00320.62
8.2.20.0040.00417.57
8.2.10.0040.00417.97
8.2.00.0060.00317.86
8.1.280.0090.00625.92
8.1.270.0030.01221.92
8.1.260.0050.00328.09
8.1.250.0070.00028.09
8.1.240.0060.01320.50
8.1.230.0050.00617.66
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0030.00517.22
8.1.180.0050.00318.10
8.1.170.0000.00920.38
8.1.160.0070.00021.82
8.1.150.0000.00718.66
8.1.140.0080.00019.38
8.1.130.0000.00717.56
8.1.120.0000.00717.34
8.1.110.0000.00717.38
8.1.100.0040.00417.19
8.1.90.0070.00017.32
8.1.80.0030.00517.22
8.1.70.0000.00717.38
8.1.60.0000.00917.48
8.1.50.0040.00417.48
8.1.40.0040.00417.44
8.1.30.0040.00417.62
8.1.20.0040.00417.64
8.1.10.0040.00417.55
8.1.00.0040.00417.45
8.0.300.0000.00818.77
8.0.290.0100.00016.75
8.0.280.0030.00318.25
8.0.270.0030.00617.09
8.0.260.0000.00717.20
8.0.250.0050.00316.97
8.0.240.0000.00616.88
8.0.230.0070.00016.85
8.0.220.0000.00716.83
8.0.210.0090.00016.88
8.0.200.0060.00017.03
8.0.190.0040.00416.83
8.0.180.0070.00016.82
8.0.170.0080.00016.93
8.0.160.0030.00616.89
8.0.150.0050.00516.89
8.0.140.0000.00716.85
8.0.130.0050.00013.35
8.0.120.0030.00516.85
8.0.110.0070.00016.93
8.0.100.0080.00016.99
8.0.90.0040.00416.68
8.0.80.0030.01216.93
8.0.70.0000.00716.93
8.0.60.0000.00816.68
8.0.50.0000.00716.89
8.0.30.0100.01017.16
8.0.20.0100.00917.40
8.0.10.0000.00716.83
8.0.00.0110.00916.74
7.4.330.0000.00515.08
7.4.320.0000.00616.27
7.4.300.0030.00316.44
7.4.290.0000.00816.50
7.4.280.0040.00416.43
7.4.270.0060.00016.35
7.4.260.0040.00416.45
7.4.250.0040.00416.41
7.4.240.0020.00616.45
7.4.230.0040.00416.43
7.4.220.0040.01516.43
7.4.210.0060.01016.55
7.4.200.0000.00716.61
7.4.160.0080.00816.45
7.4.150.0070.01017.40
7.4.140.0080.01217.86
7.4.130.0150.00416.57
7.4.120.0190.00216.42
7.4.110.0190.00016.30
7.4.100.0110.00516.44
7.4.90.0090.01216.32
7.4.80.0090.01219.39
7.4.70.0130.00316.55
7.4.60.0130.00316.66
7.4.50.0030.00516.38
7.4.40.0120.00616.34
7.4.30.0100.01316.46
7.4.00.0000.01515.02
7.3.330.0030.00313.36
7.3.320.0050.00013.21
7.3.310.0000.00616.35
7.3.300.0000.00816.37
7.3.290.0130.00416.29
7.3.280.0070.00816.32
7.3.270.0120.00617.40
7.3.260.0090.00916.37
7.3.240.0130.00716.40
7.3.230.0110.00716.39
7.3.210.0090.00616.39
7.3.200.0120.00916.39
7.3.190.0110.00416.49
7.3.180.0060.00916.11
7.3.170.0130.00916.42
7.3.160.0110.00516.46
7.2.330.0120.00616.53
7.2.320.0130.00416.62
7.2.310.0130.01016.46
7.2.300.0050.02116.45
7.2.290.0100.00716.61
7.2.60.0040.00716.83
7.2.00.0040.00819.27
7.1.200.0070.00715.78
7.1.100.0030.01318.02
7.1.70.0030.00316.99
7.1.60.0060.01919.48
7.1.50.0000.01016.87
7.1.00.0100.07022.37
7.0.200.0040.00416.52
7.0.60.0170.03321.70
7.0.50.0030.08018.03
7.0.40.0070.04320.23
7.0.30.0130.07320.12
7.0.20.0370.07020.09
7.0.10.0100.08720.22
7.0.00.0030.06020.08
5.6.280.0100.06021.13
5.6.210.0070.06720.57
5.6.200.0030.08318.29
5.6.190.0130.08020.50
5.6.180.0300.06020.39
5.6.170.0330.07320.71
5.6.160.0070.08720.56
5.6.150.0130.07718.13
5.6.140.0030.05318.20
5.6.130.0070.08018.20
5.6.120.0070.04021.00
5.6.110.0170.08320.98
5.6.100.0070.07720.99
5.6.90.0130.07320.97
5.6.80.0030.05020.41
5.5.350.2930.03320.41
5.5.340.0070.07317.95
5.5.330.0030.04720.21
5.5.320.0300.07720.24
5.5.310.0230.08720.24
5.5.300.0070.08318.02
5.5.290.0070.05717.93
5.5.280.0070.05020.68
5.5.270.0070.08020.89
5.5.260.0230.06720.89
5.5.250.0030.04020.80
5.5.240.0170.07020.37

preferences:
64.13 ms | 401 KiB | 5 Q