3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '1,2,3'; $ids = array_map(fn(string $x): int => $x, explode(',', $string)); var_export($ids);

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.70.0090.00916.58
8.3.60.0160.00616.50
8.3.50.0160.00716.28
8.3.40.0000.01418.70
8.3.30.0110.00718.54
8.3.20.0080.00024.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.190.0040.01516.58
8.2.180.0070.01125.92
8.2.170.0110.00719.04
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0050.00224.66
8.2.130.0090.00026.16
8.2.120.0070.00020.99
8.2.110.0090.00022.13
8.2.100.0090.00319.51
8.2.90.0000.00817.50
8.2.80.0050.00318.92
8.2.70.0050.00317.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0050.00318.00
8.2.20.0030.00517.93
8.2.10.0080.00019.21
8.2.00.0040.00419.17
8.1.280.0070.01325.92
8.1.270.0060.00323.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0100.00019.03
8.1.230.0000.01217.83
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0080.00018.86
8.1.160.0040.00517.99
8.1.150.0050.00218.88
8.1.140.0000.00818.81
8.1.130.0070.00218.81
8.1.120.0050.00417.46
8.1.110.0080.00117.51
8.1.100.0090.00017.39
8.1.90.0040.00417.46
8.1.80.0080.00117.42
8.1.70.0050.00517.37
8.1.60.0050.00417.57
8.1.50.0090.00217.55
8.1.40.0060.00517.51
8.1.30.0130.00217.59
8.1.20.0090.00317.62
8.1.10.0090.00217.60
8.1.00.0130.00317.45
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0050.00518.31
8.0.270.0000.00718.03
8.0.260.0060.00617.80
8.0.250.0070.00517.10
8.0.240.0060.00617.10
8.0.230.0060.00617.10
8.0.220.0060.00517.06
8.0.210.0090.00417.00
8.0.200.0080.00417.08
8.0.190.0090.00317.15
8.0.180.0050.00317.11
8.0.170.0040.00517.12
8.0.160.0040.00417.12
8.0.150.0040.00417.02
8.0.140.0080.00217.10
8.0.130.0030.00615.30
8.0.120.0010.00917.08
8.0.110.0060.00317.10
8.0.100.0060.00417.00
8.0.90.0060.00317.16
8.0.80.0070.00516.96
8.0.70.0020.00717.00
8.0.60.0060.00417.14
8.0.50.0090.00717.05
8.0.30.0080.00717.27
8.0.20.0070.01317.26
8.0.10.0120.00717.10
8.0.00.0150.00317.24
7.4.330.0060.00416.44
7.4.320.0110.00316.98
7.4.300.0080.00316.78
7.4.290.0060.00616.89
7.4.280.0040.01016.91
7.4.270.0090.00216.91
7.4.260.0080.00315.28
7.4.250.0080.00416.93
7.4.240.0100.00316.96
7.4.230.0080.00417.01
7.4.220.0020.00716.79
7.4.210.0070.00916.72
7.4.200.0050.00616.95
7.4.190.0110.00317.33
7.4.180.0120.00317.33
7.4.160.0100.00317.33
7.4.150.0120.00417.33
7.4.140.0080.01316.87
7.4.130.0130.00616.96
7.4.120.0090.01216.82
7.4.110.0120.00516.83
7.4.100.0140.00616.89
7.4.90.0090.01016.90
7.4.80.0110.00816.84
7.4.70.0130.00616.92
7.4.60.0080.00916.90
7.4.50.0100.00716.80
7.4.40.0120.00616.92
7.4.30.0050.01216.81
7.4.20.0100.00816.90
7.4.10.0120.00816.87
7.4.00.0070.00816.84
7.3.330.0070.00416.77
7.3.320.0060.00415.21
7.3.310.0090.00316.68
7.3.300.0060.00516.77
7.3.290.0100.00616.44
7.3.280.0120.00317.33
7.3.270.0110.00317.33
7.3.260.0130.00516.84
7.3.250.0120.00716.87
7.3.240.0090.00716.89
7.3.230.0080.00916.77
7.3.220.0110.00716.89
7.3.210.0100.00616.80
7.3.200.0130.00716.82
7.3.190.0110.00716.81
7.3.180.0090.00816.81
7.3.170.0110.00616.79
7.3.160.0090.00716.80
7.3.150.0100.00816.75
7.3.140.0110.00716.79
7.3.130.0120.00516.77
7.3.120.0070.01216.73
7.3.110.0090.01016.78
7.3.100.0070.01116.72
7.3.90.0110.00816.81
7.3.80.0080.01216.74
7.3.70.0090.00816.75
7.3.60.0070.01016.82
7.3.50.0130.00316.80
7.3.40.0090.00916.70
7.3.30.0070.00916.74
7.3.20.0150.00317.70
7.3.10.0090.01117.62
7.3.00.0170.00317.66

preferences:
39.99 ms | 401 KiB | 5 Q