3v4l.org

run code in 300+ PHP versions simultaneously
<?php function explodeDeluxe($string, $nrParts) { return explode(' ', $string, $nrParts) + array_fill(0, $nrParts, null); } var_dump(explodeDeluxe('a b c', 2));

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.0100.01018.55
8.3.50.0200.00018.34
8.3.40.0110.00418.54
8.3.30.0130.00718.68
8.3.20.0110.00318.85
8.3.10.0000.00821.91
8.3.00.0040.00422.34
8.2.180.0090.00918.16
8.2.170.0130.00322.96
8.2.160.0110.00321.07
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00722.12
8.2.120.0040.00426.35
8.2.110.0040.00422.24
8.2.100.0070.00417.78
8.2.90.0060.00317.90
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0060.00317.50
8.2.50.0000.00817.60
8.2.40.0050.00320.90
8.2.30.0000.00720.62
8.2.20.0030.00617.93
8.2.10.0030.00518.04
8.2.00.0040.00419.29
8.1.280.0120.00625.92
8.1.270.0060.00322.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0170.00023.84
8.1.230.0090.00322.61
8.1.220.0040.00417.74
8.1.210.0030.00618.89
8.1.200.0060.00317.23
8.1.190.0090.00017.22
8.1.180.0000.01018.10
8.1.170.0060.00318.75
8.1.160.0070.00018.64
8.1.150.0040.00418.69
8.1.140.0040.00418.96
8.1.130.0030.00519.00
8.1.120.0020.00517.23
8.1.110.0000.00717.38
8.1.100.0070.00017.26
8.1.90.0000.01117.34
8.1.80.0080.00017.22
8.1.70.0000.00817.33
8.1.60.0050.00317.41
8.1.50.0000.00817.44
8.1.40.0000.00817.45
8.1.30.0000.00817.60
8.1.20.0040.00417.50
8.1.10.0030.00617.38
8.1.00.0030.00617.34
8.0.300.0040.00419.79
8.0.290.0060.00616.63
8.0.280.0030.00718.31
8.0.270.0000.01017.12
8.0.260.0000.00719.10
8.0.250.0020.00516.86
8.0.240.0000.00816.89
8.0.230.0000.00716.86
8.0.220.0030.00316.84
8.0.210.0040.00416.81
8.0.200.0060.00016.78
8.0.190.0030.00616.98
8.0.180.0030.00616.74
8.0.170.0030.00616.86
8.0.160.0030.00316.80
8.0.150.0050.00216.73
8.0.140.0000.00816.78
8.0.130.0030.00313.27
8.0.120.0000.00716.80
8.0.110.0030.00516.72
8.0.100.0030.00316.70
8.0.90.0040.00416.86
8.0.80.0080.01016.80
8.0.70.0070.00016.78
8.0.60.0040.00416.80
8.0.50.0040.00416.79
8.0.30.0080.01116.93
8.0.20.0090.01017.40
8.0.10.0070.00016.86
8.0.00.0110.00716.72
7.4.330.0030.00315.55
7.4.320.0000.00716.39
7.4.300.0030.00316.45
7.4.290.0000.00716.52
7.4.280.0090.00016.30
7.4.270.0030.00316.57
7.4.260.0000.00916.41
7.4.250.0050.00316.43
7.4.240.0040.00416.55
7.4.230.0070.00016.24
7.4.220.0000.00816.63
7.4.210.0050.00916.49
7.4.200.0030.00316.34
7.4.160.0080.01016.45
7.4.140.0080.01117.86
7.4.130.0100.01016.57
7.4.120.0080.01016.38
7.4.110.0040.01216.26
7.4.100.0090.00916.42
7.4.90.0140.00316.46
7.4.80.0080.00819.39
7.4.70.0100.00716.15
7.4.60.0140.00316.35
7.4.50.0120.00316.42
7.4.40.0090.00916.48
7.4.00.0140.00314.84
7.3.330.0000.00513.19
7.3.320.0060.00013.11
7.3.310.0030.00316.14
7.3.300.0050.00516.24
7.3.290.0030.00316.25
7.3.280.0080.01016.14
7.3.260.0090.00816.37
7.3.240.0100.00916.31
7.3.230.0090.00916.37
7.3.210.0120.00616.29
7.3.200.0030.01816.34
7.3.190.0110.00516.25
7.3.180.0060.01016.36
7.3.170.0060.00916.49
7.3.160.0070.01116.39
7.3.120.0060.01014.44
7.3.110.0070.00715.03
7.3.100.0070.00714.77
7.3.90.0030.01014.51
7.3.80.0070.01014.66
7.3.70.0100.00014.83
7.3.60.0000.01114.71
7.3.50.0060.00614.68
7.3.40.0070.00714.78
7.3.30.0030.01014.89
7.3.20.0070.01016.63
7.3.10.0090.00616.69
7.3.00.0040.00916.65
7.2.330.0030.02016.34
7.2.320.0040.01516.52
7.2.310.0150.00616.61
7.2.300.0110.00716.44
7.2.290.0100.00716.19
7.2.240.0090.00914.81
7.2.230.0060.00914.84
7.2.220.0060.00914.82
7.2.210.0060.01014.45
7.2.200.0030.00714.91
7.2.190.0070.01314.95
7.2.180.0100.00714.92
7.2.170.0040.01214.86
7.2.160.0060.00915.08
7.2.150.0120.00616.80
7.2.140.0120.00616.94
7.2.130.0030.00916.78
7.2.120.0070.00816.86
7.2.110.0030.01216.68
7.2.100.0020.01416.60
7.2.90.0090.00516.83
7.2.80.0240.01015.95
7.2.70.0190.00716.04
7.2.60.0260.00515.97
7.2.50.0200.00816.04
7.2.40.0240.00815.86
7.2.30.0150.00716.07
7.2.20.0460.00716.13
7.2.10.0220.00616.05
7.2.00.0250.00416.05
7.1.330.0070.01115.97
7.1.320.0040.00415.70
7.1.310.0000.01615.57
7.1.300.0090.00915.50
7.1.290.0090.00915.48
7.1.280.0060.00315.61
7.1.270.0000.01515.45
7.1.260.0100.01015.53
7.1.250.0060.00615.80
7.1.240.0100.00615.62
7.1.230.0030.01215.62
7.1.220.0060.00615.77
7.1.210.0060.00815.68
7.1.200.0300.00714.83
7.1.190.0540.00314.74
7.1.180.0350.00514.78
7.1.170.0470.00714.80
7.1.160.0250.00714.63
7.1.150.0200.01014.84
7.1.140.0230.00514.60
7.1.130.0250.00914.65
7.1.120.0300.00714.65
7.1.110.0330.00514.74
7.1.100.0310.00214.97
7.1.90.0200.00914.89
7.1.80.0250.00614.67
7.1.70.0250.00314.93
7.1.60.0320.00623.78
7.1.50.0270.00923.72
7.1.40.0370.00923.74
7.1.30.0290.00923.69
7.1.20.0310.01023.74
7.1.10.0230.00514.64
7.1.00.0230.01214.78
7.0.330.0100.00315.02
5.6.380.0060.00914.00

preferences:
63.03 ms | 400 KiB | 5 Q