3v4l.org

run code in 300+ PHP versions simultaneously
<?hh function to_s(int $i): string { return (string) $i; } int $i = 1; $s = 'test' . to_s($i); echo $s;

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.01116.38
8.3.50.0120.00722.04
8.3.40.0110.00318.73
8.3.30.0180.00318.96
8.3.20.0040.00420.26
8.3.10.0000.00823.48
8.3.00.0070.00719.07
8.2.180.0070.01018.27
8.2.170.0070.00722.96
8.2.160.0200.00020.14
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.76
8.2.110.0030.00722.26
8.2.100.0000.01117.78
8.2.90.0040.00417.72
8.2.80.0040.00417.97
8.2.70.0040.00417.47
8.2.60.0060.00317.78
8.2.50.0030.00618.07
8.2.40.0040.00419.82
8.2.30.0040.00418.10
8.2.20.0050.00317.51
8.2.10.0030.00317.97
8.2.00.0000.00917.59
8.1.280.0140.00325.92
8.1.270.0090.00923.79
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0060.00322.46
8.1.230.0070.00420.97
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0070.00617.22
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00421.93
8.1.150.0040.00418.56
8.1.140.0000.00717.30
8.1.130.0070.00017.73
8.1.120.0070.00017.24
8.1.110.0040.00417.24
8.1.100.0080.00017.27
8.1.90.0040.00417.28
8.1.80.0040.00417.37
8.1.70.0070.00017.25
8.1.60.0050.00317.29
8.1.50.0080.00017.37
8.1.40.0050.00217.32
8.1.30.0070.00317.52
8.1.20.0050.00317.49
8.1.10.0000.00717.45
8.1.00.0030.00617.25
8.0.300.0000.00719.91
8.0.290.0000.00717.16
8.0.280.0000.00718.38
8.0.270.0000.00717.11
8.0.260.0030.00317.16
8.0.250.0030.00316.70
8.0.240.0000.00716.86
8.0.230.0000.00716.65
8.0.220.0000.00716.81
8.0.210.0040.00416.63
8.0.200.0000.00616.76
8.0.190.0000.00716.84
8.0.180.0050.00316.74
8.0.170.0040.00416.75
8.0.160.0050.00216.64
8.0.150.0040.00416.69
8.0.140.0050.00216.69
8.0.130.0030.00313.30
8.0.120.0050.00316.66
8.0.110.0050.00216.70
8.0.100.0000.00716.79
8.0.90.0030.00316.64
8.0.80.0100.00716.75
8.0.70.0040.00416.54
8.0.60.0070.00016.71
8.0.50.0040.00416.79
8.0.30.0110.01216.89
8.0.20.0100.00917.40
8.0.10.0040.00416.72
8.0.00.0140.00416.56
7.4.330.0000.00615.00
7.4.320.0060.00016.36
7.4.300.0060.00316.37
7.4.290.0030.00316.44
7.4.280.0040.00416.28
7.4.270.0040.00416.44
7.4.260.0030.00516.21
7.4.250.0040.00416.23
7.4.240.0040.00416.45
7.4.230.0000.00616.49
7.4.220.0080.00916.54
7.4.210.0040.01016.38
7.4.200.0040.00416.53
7.4.190.0000.00716.25
7.4.160.0110.00516.38
7.4.150.0090.01317.40
7.4.140.0130.00517.86
7.4.130.0090.00916.35
7.4.120.0030.01416.54
7.4.110.0160.00616.32
7.4.100.0030.01416.31
7.4.90.0130.00316.36
7.4.80.0060.01419.39
7.4.70.0000.01616.30
7.4.60.0170.00016.32
7.4.50.0000.00816.35
7.4.40.0090.01216.14
7.4.30.0110.00416.39
7.3.330.0000.00712.95
7.3.320.0030.00313.21
7.3.310.0030.00315.99
7.3.300.0030.00316.12
7.3.290.0100.01016.08
7.3.280.0060.01016.17
7.3.270.0140.00317.40
7.3.260.0080.01616.24
7.3.250.0060.01516.23
7.3.240.0130.00616.15
7.3.230.0030.01716.39
7.3.210.0110.00516.22
7.3.200.0060.01019.39
7.3.190.0120.00916.43
7.3.180.0160.00016.40
7.3.170.0030.01316.27
7.3.160.0090.00716.30
7.2.330.0080.00916.36
7.2.320.0030.01316.66
7.2.310.0060.01816.46
7.2.300.0070.01016.59
7.2.290.0160.00716.34
5.4.320.0070.03512.45
5.4.310.0040.04112.45
5.4.300.0080.04012.46
5.4.290.0040.04912.45
5.4.280.0110.08612.34
5.4.270.0080.05112.35
5.4.260.0040.05712.35
5.4.250.0090.05212.35
5.4.240.0090.04812.34
5.4.230.0070.03912.34
5.4.220.0030.03912.34
5.4.210.0080.03412.34
5.4.200.0090.03912.34
5.4.190.0050.04612.34
5.4.180.0080.04012.34
5.4.170.0060.03612.35
5.4.160.0080.03812.34
5.4.150.0090.04112.34
5.4.140.0060.05312.02
5.4.130.0210.05912.01
5.4.120.0060.04011.96
5.4.110.0100.03611.96
5.4.100.0220.08011.96
5.4.90.0070.05111.96
5.4.80.0040.04811.96
5.4.70.0090.03511.96
5.4.60.0070.03811.96
5.4.50.0080.03711.96
5.4.40.0070.03811.95
5.4.30.0080.03711.95
5.4.20.0080.03911.95
5.4.10.0080.03911.95
5.4.00.0070.03811.44
5.3.290.0080.04812.80
5.3.280.0060.03912.71
5.3.270.0090.03912.73
5.3.260.0050.04212.72
5.3.250.0090.03812.72
5.3.240.0080.04012.72
5.3.230.0080.03912.71
5.3.220.0060.03812.68
5.3.210.0040.04412.68
5.3.200.0100.04012.68
5.3.190.0070.04112.67
5.3.180.0080.03812.67
5.3.170.0030.04312.67
5.3.160.0110.04812.68
5.3.150.0070.04212.67
5.3.140.0090.03612.66
5.3.130.0080.03912.66
5.3.120.0070.04412.66
5.3.110.0050.04312.66
5.3.100.0090.03712.12
5.3.90.0060.04012.09
5.3.80.0080.03612.07
5.3.70.0080.04112.07
5.3.60.0120.03612.06
5.3.50.0060.03812.00
5.3.40.0190.05412.00
5.3.30.0130.05611.94
5.3.20.0180.06411.71
5.3.10.0110.06111.68
5.3.00.0110.05811.67

preferences:
44.34 ms | 401 KiB | 5 Q