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($num) { return chr($num); }, $$) |> 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.0090.00618.43
8.3.50.0040.01518.20
8.3.40.0120.00318.68
8.3.30.0030.01218.45
8.3.20.0040.00419.25
8.3.10.0050.00221.91
8.3.00.0080.00020.72
8.2.180.0070.01316.50
8.2.170.0090.01222.96
8.2.160.0100.00322.17
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0020.00517.91
8.2.120.0040.00426.35
8.2.110.0030.00720.82
8.2.100.0070.00417.47
8.2.90.0000.00817.63
8.2.80.0090.00017.97
8.2.70.0000.00817.93
8.2.60.0000.00718.09
8.2.50.0040.00418.10
8.2.40.0030.00719.25
8.2.30.0000.00719.07
8.2.20.0000.00717.87
8.2.10.0070.00017.94
8.2.00.0040.00417.52
8.1.280.0120.00325.92
8.1.270.0080.00018.75
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0040.00423.79
8.1.230.0070.00319.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0050.00316.88
8.1.180.0040.00418.10
8.1.170.0040.00418.56
8.1.160.0040.00418.75
8.1.150.0030.00518.76
8.1.140.0030.00322.16
8.1.130.0000.00720.15
8.1.120.0000.00717.21
8.1.110.0040.00417.23
8.1.100.0040.00417.29
8.1.90.0000.00817.23
8.1.80.0040.00417.28
8.1.70.0040.00417.25
8.1.60.0080.00017.48
8.1.50.0040.00417.45
8.1.40.0000.00717.25
8.1.30.0040.00417.54
8.1.20.0040.00417.56
8.1.10.0070.00017.43
8.1.00.0040.00417.45
8.0.300.0070.00019.64
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0000.00717.25
8.0.260.0000.00718.34
8.0.250.0030.00316.76
8.0.240.0050.00216.87
8.0.230.0020.00516.79
8.0.220.0000.00716.70
8.0.210.0030.00316.68
8.0.200.0070.00016.73
8.0.190.0050.00316.88
8.0.180.0070.00316.70
8.0.170.0030.00516.71
8.0.160.0050.00216.76
8.0.150.0000.00716.59
8.0.140.0070.00016.58
8.0.130.0050.00013.46
8.0.120.0000.00816.68
8.0.110.0000.00716.78
8.0.100.0070.00016.82
8.0.90.0050.00316.82
8.0.80.0090.01116.76
8.0.70.0000.00816.63
8.0.60.0080.00016.77
8.0.50.0000.00816.82
8.0.30.0110.00516.75
8.0.20.0090.00917.40
8.0.10.0060.00316.91
8.0.00.0110.00616.75
7.4.330.0030.00315.55
7.4.320.0040.00416.29
7.4.300.0030.00316.37
7.4.290.0050.00316.38
7.4.280.0080.00016.46
7.4.270.0070.00016.29
7.4.260.0090.00016.31
7.4.250.0070.00016.35
7.4.240.0000.00716.27
7.4.230.0030.00316.18
7.4.220.0000.00916.34
7.4.210.0130.00416.39
7.4.200.0040.00416.48
7.4.160.0100.00716.36
7.4.140.0090.01017.86
7.4.130.0150.00616.30
7.4.120.0090.00916.36
7.4.110.0170.00716.65
7.4.100.0140.00816.20
7.4.90.0080.00816.43
7.4.80.0090.01719.39
7.4.70.0120.00616.40
7.4.60.0110.01216.26
7.4.50.0050.00816.13
7.4.40.0120.00416.27
7.3.330.0050.00013.21
7.3.320.0020.00213.21
7.3.310.0000.00816.11
7.3.300.0000.00716.13
7.3.290.0000.00716.13
7.3.280.0090.00716.11
7.3.260.0110.00716.35
7.3.240.0100.00716.31
7.3.230.0070.01016.27
7.3.210.0110.00616.18
7.3.200.0100.00716.16
7.3.190.0090.01216.35
7.3.180.0130.01016.30
7.3.170.0070.01416.22
7.3.160.0110.00516.21
7.2.330.0180.00016.66
7.2.320.0090.01516.61
7.2.310.0060.01016.38
7.2.300.0090.00916.58
7.2.290.0140.00316.29

preferences:
81.55 ms | 401 KiB | 5 Q