3v4l.org

run code in 300+ PHP versions simultaneously
<?php function create_path($hash) { return strtolower("{$hash[0]}/{$hash[1]}/{$hash[2]}/{$hash[3]}/{$hash[4]}/"); } // will output something like "a/h/q/6/d/" echo create_path('aHq6dc93d7b');

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.4.130.0080.00917.76
8.4.120.0070.01020.88
8.4.110.0150.00518.68
8.4.100.0140.00717.86
8.4.90.0140.00720.65
8.4.80.0090.00918.89
8.4.70.0090.01020.56
8.4.60.0150.00620.72
8.4.50.0110.00917.48
8.4.40.0100.01019.60
8.4.30.0120.00618.71
8.4.20.0160.00417.67
8.4.10.0100.00723.68
8.3.260.0130.00716.29
8.3.250.0080.01118.75
8.3.240.0130.00616.45
8.3.230.0110.00916.61
8.3.220.0090.00818.92
8.3.210.0100.01118.21
8.3.200.0030.00516.46
8.3.190.0110.01016.88
8.3.180.0020.00616.50
8.3.170.0110.00717.29
8.3.160.0040.01520.93
8.3.150.0160.00318.33
8.3.140.0150.00417.26
8.3.130.0060.00318.37
8.3.120.0040.00419.05
8.3.110.0040.00418.23
8.3.100.0060.00318.32
8.3.90.0080.00026.77
8.3.80.0000.00916.50
8.3.70.0040.01116.63
8.3.60.0090.00616.63
8.3.50.0100.00320.02
8.3.40.0110.00320.19
8.3.30.0040.01218.67
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0070.00026.16
8.2.290.0120.00720.47
8.2.280.0130.00820.15
8.2.270.0090.00917.22
8.2.260.0090.00618.23
8.2.250.0060.00316.58
8.2.240.0000.00818.95
8.2.230.0060.00320.94
8.2.220.0030.00624.06
8.2.210.0110.00426.77
8.2.200.0030.00618.29
8.2.190.0070.00716.58
8.2.180.0140.00725.92
8.2.170.0070.00718.99
8.2.160.0030.01222.96
8.2.150.0000.00825.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0050.00519.10
8.2.100.0090.00317.91
8.2.90.0030.00519.76
8.2.80.0050.00318.84
8.2.70.0100.00017.50
8.2.60.0030.00717.93
8.2.50.0090.00018.07
8.2.40.0050.00318.16
8.2.30.0060.00317.97
8.2.20.0040.00420.51
8.2.10.0080.00018.09
8.2.00.0000.00719.31
8.1.330.0100.00822.00
8.1.320.0100.01117.85
8.1.310.0000.00718.17
8.1.300.0000.00916.05
8.1.290.0080.00030.84
8.1.280.0130.00925.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0150.00723.78
8.1.230.0060.00620.89
8.1.220.0030.00617.74
8.1.210.0040.00418.97
8.1.200.0060.00317.10
8.1.190.0040.00417.10
8.1.180.0060.00318.10
8.1.170.0000.00818.49
8.1.160.0000.00718.83
8.1.150.0030.00618.62
8.1.140.0040.00417.24
8.1.130.0080.00017.17
8.1.120.0060.00317.37
8.1.110.0110.00317.23
8.1.100.0100.00317.33
8.1.90.0120.00217.23
8.1.80.0140.00017.34
8.1.70.0120.00317.32
8.1.60.0120.00617.55
8.1.50.0070.01117.41
8.1.40.0170.00017.55
8.1.30.0140.00317.43
8.1.20.0150.00217.53
8.1.10.0100.00717.49
8.1.00.0160.00017.45
8.0.300.0030.00319.82
8.0.290.0040.00416.75
8.0.280.0070.00018.44
8.0.270.0000.00717.19
8.0.260.0000.00620.05
8.0.250.0120.00416.75
8.0.240.0090.00616.81
8.0.230.0050.00916.80
8.0.220.0130.00316.52
8.0.210.0000.01416.70
8.0.200.0080.00616.74
8.0.190.0150.00016.75
8.0.180.0070.01016.73
8.0.170.0050.00916.64
8.0.160.0110.00516.75
8.0.150.0110.00416.59
8.0.140.0110.00416.67
8.0.130.0110.00316.68
8.0.120.0160.00016.58
8.0.110.0110.00416.73
8.0.100.0150.00016.68
8.0.90.0140.00016.77
8.0.80.0110.00516.58
8.0.70.0050.01116.61
8.0.60.0130.00016.55
8.0.50.0140.00016.64
8.0.30.0110.00316.73
8.0.20.0110.00316.67
8.0.10.0110.00316.71
7.4.330.0140.00014.29
7.4.320.0100.00516.30
7.4.300.0050.00516.37
7.4.290.0150.00016.25
7.4.280.0110.00416.29
7.4.270.0150.00016.25
7.4.260.0120.00516.41
7.4.250.0160.00016.32
7.4.240.0040.01216.46
7.4.230.0040.01216.36
7.4.220.0090.00416.34
7.4.210.0130.00016.32
7.4.200.0070.00716.21
7.4.190.0130.00016.51
7.4.180.0130.00016.45
7.4.160.0110.00316.32
7.4.150.0070.00716.37
7.4.140.0090.00416.27
7.4.130.0060.00716.19
7.4.120.0060.00316.38
7.4.110.0090.00416.16
7.4.100.0100.00316.33
7.4.90.0080.00416.11
7.4.80.0100.00516.34
7.4.70.0080.00018.09
7.4.60.0040.00418.04
7.4.50.0000.00818.00
7.4.40.0030.00517.98
7.4.30.0080.00018.07
7.4.20.0040.00418.12
7.4.10.0050.00318.04
7.4.00.0020.00617.94

preferences:
28.22 ms | 403 KiB | 5 Q