3v4l.org

run code in 300+ PHP versions simultaneously
<?hh function transform($str) { return $str |> strtoupper($$) |> str_replace(' ', '_', $$) |> str_split($$) |> array_map(function($chr) { return ord($chr); }, $$) |> array_map(function($chr) { return chr($chr); }, $$) |> join(', ', $$); } echo transform("Flemming Busman");

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.0070.00718.18
8.3.50.0110.00717.91
8.3.40.0040.01118.49
8.3.30.0090.00618.59
8.3.20.0000.00719.34
8.3.10.0070.00021.69
8.3.00.0030.00520.88
8.2.180.0100.00316.32
8.2.170.0110.00322.96
8.2.160.0070.00722.14
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00417.91
8.2.120.0080.00026.35
8.2.110.0080.00022.03
8.2.100.0100.00717.72
8.2.90.0040.00417.78
8.2.80.0040.00417.97
8.2.70.0000.00817.80
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0030.00819.06
8.2.30.0050.00219.10
8.2.20.0000.00817.84
8.2.10.0030.00317.80
8.2.00.0050.00317.41
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0070.00717.32
8.1.230.0070.00420.90
8.1.220.0000.00717.74
8.1.210.0000.00818.84
8.1.200.0030.00617.10
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0070.00018.82
8.1.150.0040.00418.71
8.1.140.0000.00722.16
8.1.130.0040.00420.27
8.1.120.0000.00717.22
8.1.110.0040.00417.32
8.1.100.0070.00017.17
8.1.90.0000.00817.21
8.1.80.0000.00917.28
8.1.70.0000.00717.29
8.1.60.0030.00517.45
8.1.50.0040.00417.36
8.1.40.0040.00417.28
8.1.30.0000.00817.41
8.1.20.0070.00017.51
8.1.10.0040.00417.37
8.1.00.0000.00817.37
8.0.300.0040.00419.61
8.0.290.0050.00216.63
8.0.280.0000.00818.42
8.0.270.0000.00717.18
8.0.260.0030.00318.38
8.0.250.0000.00616.77
8.0.240.0000.00616.83
8.0.230.0000.00716.73
8.0.220.0000.00716.69
8.0.210.0050.00316.63
8.0.200.0050.00316.86
8.0.190.0050.00216.71
8.0.180.0060.00316.82
8.0.170.0040.00416.77
8.0.160.0030.00316.84
8.0.150.0030.00316.79
8.0.140.0020.00516.72
8.0.130.0030.00313.48
8.0.120.0000.00716.75
8.0.110.0030.00516.81
8.0.100.0000.00816.71
8.0.90.0000.00716.64
8.0.80.0080.00616.75
8.0.70.0050.00316.54
8.0.60.0000.00716.59
8.0.50.0000.00816.79
8.0.30.0120.00616.86
8.0.20.0090.01017.40
8.0.10.0000.01016.84
8.0.00.0140.00916.52
7.4.330.0020.00215.55
7.4.320.0030.00316.47
7.4.300.0060.00016.37
7.4.290.0070.00016.46
7.4.280.0030.00616.51
7.4.270.0040.00416.38
7.4.260.0070.00316.48
7.4.250.0000.00716.36
7.4.240.0000.00716.48
7.4.230.0030.00316.36
7.4.220.0000.00816.49
7.4.210.0060.00816.35
7.4.200.0030.00316.47
7.4.160.0100.00816.38
7.4.140.0110.00917.86
7.4.130.0190.00316.20
7.4.120.0080.00916.43
7.4.110.0120.00616.32
7.4.100.0100.00616.46
7.4.90.0040.01516.32
7.4.80.0120.00619.39
7.4.70.0150.00416.59
7.4.60.0120.01016.41
7.4.50.0130.00616.24
7.4.40.0060.00916.23
7.3.330.0020.00213.07
7.3.320.0030.00313.11
7.3.310.0040.00416.09
7.3.300.0030.00316.13
7.3.290.0000.00616.18
7.3.280.0070.00816.14
7.3.260.0050.01316.25
7.3.240.0080.00916.19
7.3.230.0090.00916.30
7.3.210.0090.00916.02
7.3.200.0060.01016.41
7.3.190.0070.01416.20
7.3.180.0150.00716.10
7.3.170.0120.00916.51
7.3.160.0130.00416.47
7.2.330.0070.01016.31
7.2.320.0080.01116.46
7.2.310.0170.00016.58
7.2.300.0100.00616.53
7.2.290.0130.00816.60

preferences:
54.4 ms | 401 KiB | 5 Q