3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Apple, Orange, Lemone'; var_export( array_reduce( explode(', ', $string), fn($result, $v) => $result + [strtolower($v) => $v], [] ) );

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.120.0130.00720.46
8.4.110.0110.01018.59
8.4.100.0090.01118.64
8.4.90.0150.00520.59
8.4.80.0040.00418.84
8.4.70.0070.01018.96
8.4.60.0100.00918.92
8.4.50.0100.01218.81
8.4.40.0190.00018.68
8.4.30.0120.00618.66
8.4.20.0070.00319.70
8.4.10.0000.00922.07
8.3.250.0060.00319.17
8.3.240.0120.00717.13
8.3.230.0090.00916.74
8.3.220.0050.00219.10
8.3.210.0060.00116.59
8.3.200.0150.00716.56
8.3.190.0090.01017.04
8.3.180.0090.00918.79
8.3.170.0130.00719.08
8.3.160.0040.01417.19
8.3.150.0050.00317.14
8.3.140.0000.01016.78
8.3.130.0140.00418.58
8.3.120.0030.00620.69
8.3.110.0090.00020.94
8.3.100.0110.01116.76
8.3.90.0080.00026.77
8.3.80.0100.00016.50
8.3.70.0140.00016.58
8.3.60.0110.00418.22
8.3.50.0120.00620.46
8.3.40.0150.00420.32
8.3.30.0070.00718.71
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0080.00520.53
8.2.280.0090.01018.32
8.2.270.0110.00717.07
8.2.260.0000.00716.35
8.2.250.0040.00416.55
8.2.240.0000.00816.97
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0050.00326.77
8.2.200.0060.00318.05
8.2.190.0110.00316.58
8.2.180.0140.00025.92
8.2.170.0080.00819.04
8.2.160.0150.00022.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0040.00426.16
8.2.110.0030.00619.29
8.2.100.0040.00818.03
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0080.00517.80
8.2.50.0000.00818.07
8.2.40.0070.00018.28
8.2.30.0040.00418.05
8.2.20.0070.00021.07
8.2.10.0000.00718.10
8.2.00.0040.00419.35
8.1.330.0100.00821.95
8.1.320.0110.00817.92
8.1.310.0030.00616.84
8.1.300.0060.00316.02
8.1.290.0040.00430.84
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0110.00022.20
8.1.230.0040.00820.95
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0000.01117.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0080.00018.57
8.1.160.0070.00018.89
8.1.150.0040.00418.68
8.1.140.0000.00717.45
8.1.130.0030.00320.84
8.1.120.0060.00317.39
8.1.110.0050.00317.36
8.1.100.0020.00517.50
8.1.90.0110.00517.41
8.1.80.0090.00617.27
8.1.70.0060.00917.39
8.1.60.0130.00417.55
8.1.50.0100.00717.35
8.1.40.0120.00617.34
8.1.30.0130.00717.66
8.1.20.0120.00717.52
8.1.10.0190.00017.42
8.1.00.0130.00417.38
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0030.00316.85
8.0.260.0030.00318.30
8.0.250.0000.00716.95
8.0.240.0000.00716.93
8.0.230.0000.00716.81
8.0.220.0110.00416.75
8.0.210.0150.00016.83
8.0.200.0090.00616.99
8.0.190.0100.00516.92
8.0.180.0150.00016.91
8.0.170.0080.00816.95
8.0.160.0130.00316.75
8.0.150.0110.00316.82
8.0.140.0120.00316.78
8.0.130.0090.00516.94
8.0.120.0160.00016.93
8.0.110.0040.00916.93
8.0.100.0150.00016.93
8.0.90.0110.00416.79
8.0.80.0100.00616.90
8.0.70.0040.01216.83
8.0.60.0100.00716.88
8.0.50.0090.00616.93
8.0.30.0130.00316.91
8.0.20.0130.00016.95
8.0.10.0120.00316.93
7.4.330.0000.00515.55
7.4.320.0100.00016.46
7.4.300.0100.00316.45
7.4.290.0120.00016.36
7.4.280.0110.00216.63
7.4.270.0170.00016.58
7.4.260.0110.00316.60
7.4.250.0130.00516.50
7.4.240.0120.00616.46
7.4.230.0130.00016.53
7.4.220.0120.00016.44
7.4.210.0050.00916.40
7.4.200.0090.00516.49
7.4.190.0100.00316.47
7.4.180.0120.00016.25
7.4.160.0060.00716.51
7.4.150.0110.00416.60
7.4.140.0100.00316.33
7.4.130.0100.00316.29
7.4.120.0140.00016.39
7.4.110.0090.00316.22
7.4.100.0100.00516.56
7.4.90.0080.00816.49
7.4.80.0040.00816.15
7.4.70.0120.00216.45
7.4.60.0080.00316.17
7.4.50.0130.00016.20
7.4.40.0030.01016.35
7.4.30.0050.00916.19
7.4.20.0060.00616.21
7.4.10.0050.00516.23
7.4.00.0070.00416.40

preferences:
28.76 ms | 403 KiB | 5 Q