3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ ['tutor_name' => 'John Doe', 'course_day' => 'Monday'], ['tutor_name' => 'John Doe', 'course_day' => 'Tuesday'] ]; function translate_to_cz ($day) { switch ($day) { case "Monday": $day_cz = "Pondělí"; break; case "Tuesday": $day_cz = "Úterý"; break; } return $day_cz; } foreach ($data as &$value) { $value['course_day_cz'] = translate_to_cz($value['course_day']); } print_r($data);

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.140.0160.00517.71
8.4.130.0120.00818.42
8.4.120.0070.00223.93
8.4.110.0110.00922.26
8.4.100.0120.01017.61
8.4.90.0060.00217.64
8.4.80.0120.00817.79
8.4.70.0060.00319.61
8.4.60.0070.01118.58
8.4.50.0070.00320.54
8.4.40.0090.01020.27
8.4.30.0040.01518.56
8.4.20.0070.01024.50
8.4.10.0030.01621.20
8.3.270.0120.00816.67
8.3.260.0120.00716.61
8.3.250.0020.00718.55
8.3.240.0070.00217.27
8.3.230.0140.00416.70
8.3.220.0160.00417.41
8.3.210.0090.00916.70
8.3.200.0160.00416.32
8.3.190.0110.00817.13
8.3.180.0040.00516.48
8.3.170.0140.00418.97
8.3.160.0150.00317.24
8.3.150.0040.00417.12
8.3.140.0070.00716.69
8.3.130.0060.00318.36
8.3.120.0060.00320.71
8.3.110.0060.00320.94
8.3.100.0190.00024.06
8.3.90.0080.00026.77
8.3.80.0030.00616.50
8.3.70.0100.01316.58
8.3.60.0180.00316.63
8.3.50.0100.00723.65
8.3.40.0040.01120.10
8.3.30.0090.00618.84
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0000.00726.16
8.2.290.0070.00518.89
8.2.280.0040.00318.54
8.2.270.0180.00020.58
8.2.260.0100.00016.37
8.2.250.0030.00616.68
8.2.240.0080.00017.28
8.2.230.0040.00422.58
8.2.220.0110.00737.54
8.2.210.0070.00726.77
8.2.200.0090.00016.50
8.2.190.0150.00316.58
8.2.180.0130.00725.92
8.2.170.0120.00318.68
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00021.04
8.2.110.0030.00620.58
8.2.100.0090.00317.84
8.2.90.0040.00419.01
8.2.80.0040.00717.97
8.2.70.0000.00817.75
8.2.60.0040.00417.63
8.2.50.0030.00718.05
8.2.40.0000.00718.28
8.2.30.0040.00418.07
8.2.20.0090.00018.08
8.2.10.0040.00419.28
8.2.00.0040.00419.30
8.1.330.0080.01021.99
8.1.320.0070.00415.97
8.1.310.0070.01116.52
8.1.300.0090.00917.84
8.1.290.0060.00618.88
8.1.280.0040.01125.92
8.1.270.0030.00523.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00719.03
8.1.230.0090.00317.79
8.1.220.0080.00017.77
8.1.210.0050.00318.77
8.1.200.0030.00617.12
8.1.190.0040.00417.40
8.1.180.0000.00918.10
8.1.170.0080.00018.50
8.1.160.0040.00418.85
8.1.150.0030.00318.82
8.1.140.0000.00718.89
8.1.130.0000.00820.08
8.1.120.0030.00317.48
8.1.110.0040.00417.31
8.1.100.0020.00517.34
8.1.90.0000.00817.50
8.1.80.0030.00517.46
8.1.70.0050.00317.37
8.1.60.0040.00417.54
8.1.50.0040.00417.52
8.1.40.0070.00417.54
8.1.30.0030.00517.66
8.1.20.0040.00417.63
8.1.10.0000.00717.56
8.1.00.0050.00317.53
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00320.17
8.0.270.0040.00418.05
8.0.260.0070.00018.37
8.0.250.0040.00416.88
8.0.240.0030.00516.94
8.0.230.0000.00716.95
8.0.220.0070.00016.89
8.0.210.0040.00416.95
8.0.200.0040.00416.83
8.0.190.0070.00016.91
8.0.180.0070.00016.87
8.0.170.0040.00416.86
8.0.160.0000.00716.89
8.0.150.0070.00016.71
8.0.140.0000.00716.82
8.0.130.0050.00013.27
8.0.120.0030.00316.81
8.0.110.0040.00416.94
8.0.100.0000.00716.88
8.0.90.0000.00716.77
8.0.80.0070.00916.86
8.0.70.0040.00416.86
8.0.60.0030.00516.79
8.0.50.0000.00916.82
8.0.30.0130.00616.88
8.0.20.0090.00916.92
8.0.10.0030.00617.12
8.0.00.0080.01216.53
7.4.330.0000.00515.55
7.4.320.0000.00916.57
7.4.300.0040.00416.50
7.4.290.0000.00816.50
7.4.280.0040.00416.50
7.4.270.0000.00816.49
7.4.260.0000.00713.16
7.4.250.0050.00316.55
7.4.240.0040.00416.64
7.4.230.0030.00316.62
7.4.220.0030.00416.66
7.4.210.0090.00916.57
7.4.200.0040.00216.39
7.4.130.0080.01116.64
7.4.120.0070.01716.43
7.4.110.0070.01016.39
7.4.100.0180.01216.58
7.4.90.0300.00416.63
7.4.80.0270.01016.45
7.4.70.0210.01116.45
7.4.60.0290.01016.20
7.4.50.0230.01216.57
7.4.40.0300.00616.58
7.4.30.0300.00816.31
7.4.20.0300.00316.47
7.4.10.0200.01016.55
7.4.00.0090.00916.49
7.3.330.0030.00316.16
7.3.320.0050.00013.22
7.3.310.0000.00716.40
7.3.300.0030.00316.37
7.3.290.0100.00816.35
7.3.280.0120.00316.33
7.3.260.0060.01016.30
7.3.230.0130.01016.66
7.3.220.0230.01416.29
7.3.210.0190.01316.41
7.3.200.0250.01016.61
7.3.190.0230.01316.34
7.3.180.0280.00916.57
7.3.170.0270.00816.38
7.3.160.0260.00816.22
7.3.150.0300.01216.23
7.3.140.0330.00016.34
7.3.130.0410.01316.37
7.3.120.0160.01716.54
7.3.110.0360.00016.34
7.3.100.0270.01116.28
7.3.90.0200.01416.30
7.3.80.0150.01816.64
7.3.70.0190.01216.47
7.3.60.0120.00616.27
7.3.50.0100.01316.49
7.3.40.0160.00316.34
7.3.30.0040.01416.54
7.3.20.0060.01216.54
7.3.10.0090.00916.37
7.3.00.0060.01416.53
7.2.330.0290.00716.74
7.2.320.0260.00716.64
7.2.310.0420.01116.68
7.2.300.0240.00916.64
7.2.290.0220.01516.73
7.2.280.0270.00516.63
7.2.270.0150.01816.79
7.2.260.0260.00816.63
7.2.250.0250.00916.63
7.2.240.0220.01216.69
7.2.230.0310.00016.45
7.2.220.0210.01216.45
7.2.210.0240.00816.73
7.2.200.0060.01216.75
7.2.190.0110.01016.59
7.2.180.0170.00616.83
7.2.170.0180.00416.54
7.2.160.0180.00016.62
7.2.150.0090.00916.72
7.2.140.0180.00416.70
7.2.130.0050.01416.78
7.2.120.0120.00816.70
7.2.110.0130.01016.64
7.2.100.0110.01416.55
7.2.90.0100.01616.56
7.2.80.0060.01616.72
7.2.70.0120.00616.54
7.2.60.0180.00416.49
7.2.50.0040.01516.73
7.2.40.0180.00616.70
7.2.30.0070.01416.74
7.2.20.0120.01216.64
7.2.10.0120.00616.61
7.2.00.0090.01216.64

preferences:
31 ms | 403 KiB | 5 Q