3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "type1|type2"; $str2 = "val1|val2"; $columnNames = ['type', 'val']; var_export( array_map( fn(...$col) => array_combine($columnNames, $col), explode('|', $str1), explode('|', $str2) ) );

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.5.10.0090.00820.27
8.5.00.0160.01122.93
8.4.150.0010.00214.05
8.4.140.0100.01317.73
8.4.130.0120.00718.88
8.4.120.0160.00418.64
8.4.110.0080.01218.63
8.4.100.0090.01017.66
8.4.90.0150.00720.46
8.4.80.0110.00818.73
8.4.70.0090.00119.06
8.4.60.0120.00820.62
8.4.50.0150.00620.32
8.4.40.0170.00319.41
8.4.30.0040.00718.35
8.4.20.0130.00617.86
8.4.10.0160.00321.95
8.3.280.0130.01118.35
8.3.270.0100.00916.55
8.3.260.0060.01316.65
8.3.250.0070.00816.73
8.3.240.0120.00816.52
8.3.230.0150.00516.45
8.3.220.0120.00619.09
8.3.210.0120.00518.36
8.3.200.0040.00516.48
8.3.190.0110.00417.05
8.3.180.0120.00621.05
8.3.170.0140.00317.24
8.3.160.0070.01016.49
8.3.150.0040.01516.53
8.3.140.0070.00716.48
8.3.130.0040.00416.50
8.3.120.0050.00518.94
8.3.110.0000.01420.94
8.3.100.0130.00624.06
8.3.90.0070.00026.77
8.3.80.0070.00316.50
8.3.70.0110.01116.63
8.3.60.0210.00018.40
8.3.50.0140.00419.85
8.3.40.0100.01021.81
8.3.30.0150.00318.70
8.3.20.0140.00024.18
8.3.10.0060.00324.66
8.3.00.0000.00826.16
8.2.290.0080.01017.32
8.2.280.0090.00918.51
8.2.270.0000.01016.82
8.2.260.0030.00717.10
8.2.250.0070.00316.52
8.2.240.0080.00018.80
8.2.230.0030.00622.58
8.2.220.0090.00937.54
8.2.210.0070.01026.77
8.2.200.0070.00316.75
8.2.190.0080.00816.59
8.2.180.0090.00625.92
8.2.170.0170.00318.82
8.2.160.0110.00322.96
8.2.150.0000.00825.66
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0000.00826.16
8.2.110.0070.00322.25
8.2.100.0000.01217.78
8.2.90.0000.00817.63
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0060.00317.63
8.2.50.0040.00418.04
8.2.40.0030.00519.94
8.2.30.0040.00418.09
8.2.20.0040.00420.37
8.2.10.0080.00018.23
8.2.00.0000.00719.39
8.1.330.0100.00816.31
8.1.320.0140.00616.59
8.1.310.0140.00316.79
8.1.300.0030.00716.09
8.1.290.0090.00018.88
8.1.280.0140.00325.92
8.1.270.0090.00023.99
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00322.46
8.1.230.0000.01119.10
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0100.00017.48
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0030.00517.62
8.1.160.0000.00718.93
8.1.150.0040.00418.70
8.1.140.0050.00317.41
8.1.130.0080.00018.85
8.1.120.0050.00217.36
8.1.110.0000.00717.46
8.1.100.0060.00317.41
8.1.90.0000.00917.45
8.1.80.0090.00617.48
8.1.70.0060.00317.47
8.1.60.0090.00917.41
8.1.50.0130.00417.50
8.1.40.0090.00917.39
8.1.30.0140.00517.64
8.1.20.0060.01117.55
8.1.10.0180.00017.63
8.1.00.0130.00317.34
8.0.300.0080.00021.40
8.0.290.0030.00616.63
8.0.280.0070.00018.44
8.0.270.0040.00416.71
8.0.260.0000.00618.31
8.0.250.0000.00716.93
8.0.240.0040.00416.95
8.0.230.0000.00716.84
8.0.220.0000.00716.93
8.0.210.0110.00316.84
8.0.200.0150.00016.92
8.0.190.0120.00516.86
8.0.180.0100.00516.80
8.0.170.0100.00516.89
8.0.160.0170.00016.91
8.0.150.0150.00016.70
8.0.140.0000.01416.81
8.0.130.0100.00516.81
8.0.120.0090.00516.82
8.0.110.0140.00016.93
8.0.100.0110.00416.69
8.0.90.0120.00416.84
8.0.80.0070.00716.89
8.0.70.0080.00816.62
8.0.60.0080.00816.82
8.0.50.0110.00416.83
8.0.30.0120.00316.63
8.0.20.0060.00716.73
8.0.10.0120.00416.98
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0100.00716.53
7.4.290.0090.00916.51
7.4.280.0140.00016.57
7.4.270.0130.00316.57
7.4.260.0080.00516.47
7.4.250.0170.00016.57
7.4.240.0100.00616.43
7.4.230.0140.00016.45
7.4.220.0120.00316.45
7.4.210.0120.00316.46
7.4.200.0100.00516.43
7.4.190.0150.00016.52
7.4.180.0110.00416.55
7.4.160.0110.00516.54
7.4.150.0140.00016.39
7.4.140.0110.00416.38
7.4.130.0100.00516.45
7.4.120.0080.00816.43
7.4.110.0080.00416.48
7.4.100.0000.01016.46
7.4.90.0150.00016.43
7.4.80.0080.00416.38
7.4.70.0120.00316.54
7.4.60.0110.00416.50
7.4.50.0060.00916.38
7.4.40.0040.00916.42
7.4.30.0070.00416.39
7.4.20.0080.00316.52
7.4.10.0100.00016.46
7.4.00.0100.00016.46

preferences:
138.22 ms | 403 KiB | 5 Q