3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1,2,3,6,54,8'; $str2 = ''; var_dump(explode(',',$str)); var_dump(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.3.40.0120.00318.68
8.3.30.0080.00618.92
8.3.20.0050.00320.20
8.3.10.0080.00021.53
8.3.00.0080.00019.08
8.2.170.0110.00322.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00020.88
8.2.110.0090.00022.01
8.2.100.0080.00317.72
8.2.90.0050.00317.84
8.2.80.0040.00417.97
8.2.70.0030.00617.65
8.2.60.0040.00418.22
8.2.50.0030.00518.10
8.2.40.0030.00520.91
8.2.30.0000.00719.24
8.2.20.0040.00417.55
8.2.10.0030.00517.99
8.2.00.0040.00417.61
8.1.270.0040.00418.82
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0190.00320.31
8.1.230.0070.00420.95
8.1.220.0030.00720.96
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0060.00317.22
8.1.180.0090.00018.10
8.1.170.0060.00318.50
8.1.160.0070.00020.18
8.1.150.0040.00418.89
8.1.140.0070.00017.39
8.1.130.0030.00317.84
8.1.120.0040.00417.40
8.1.110.0040.00417.30
8.1.100.0070.00017.41
8.1.90.0030.00517.39
8.1.80.0080.00017.33
8.1.70.0000.00717.37
8.1.60.0080.00317.42
8.1.50.0060.00317.48
8.1.40.0040.00417.39
8.1.30.0040.00417.48
8.1.20.0050.00217.61
8.1.10.0000.00817.52
8.1.00.0060.00317.38
8.0.300.0040.00419.79
8.0.290.0040.00416.58
8.0.280.0000.00918.38
8.0.270.0040.00417.10
8.0.260.0060.00017.12
8.0.250.0040.00416.80
8.0.240.0000.00816.86
8.0.230.0000.00816.87
8.0.220.0000.00716.72
8.0.210.0070.00016.69
8.0.200.0030.00316.95
8.0.190.0030.00516.95
8.0.180.0070.00016.89
8.0.170.0000.00716.86
8.0.160.0070.00016.81
8.0.150.0040.00416.63
8.0.140.0000.00716.84
8.0.130.0000.00713.31
8.0.120.0090.00016.70
8.0.110.0040.00416.73
8.0.100.0030.00316.73
8.0.90.0030.00316.72
8.0.80.0070.01416.79
8.0.70.0040.00416.93
8.0.60.0050.00216.86
8.0.50.0040.00416.86
8.0.30.0120.00817.07
8.0.20.0100.01017.40
8.0.10.0030.00316.82
8.0.00.0110.00616.62
7.4.330.0000.00515.03
7.4.320.0030.00316.45
7.4.300.0060.00016.43
7.4.290.0040.00416.48
7.4.280.0080.00016.57
7.4.270.0000.00716.45
7.4.260.0040.00416.28
7.4.250.0040.00416.50
7.4.240.0030.00316.54
7.4.230.0000.00716.57
7.4.220.0090.00916.57
7.4.210.0110.00416.47
7.4.200.0000.00716.19
7.4.160.0110.00516.42
7.4.150.0200.00317.40
7.4.140.0090.01017.86
7.4.130.0140.00716.31
7.4.120.0090.01116.46
7.4.110.0090.01216.33
7.4.100.0030.01416.32
7.4.90.0070.01116.39
7.4.80.0170.00319.39
7.4.70.0040.01316.61
7.4.60.0070.01016.44
7.4.50.0000.00616.27
7.4.40.0030.01316.44
7.4.30.0030.01316.46
7.4.00.0070.01114.91
7.3.330.0060.00312.93
7.3.320.0000.00513.05
7.3.310.0030.00316.28
7.3.300.0030.00316.13
7.3.290.0070.00816.14
7.3.280.0120.00716.13
7.3.270.0120.01217.40
7.3.260.0130.00416.11
7.3.250.0090.00916.34
7.3.240.0130.01416.11
7.3.230.0100.00716.39
7.3.210.0170.00016.14
7.3.200.0040.01819.39
7.3.190.0060.01616.12
7.3.180.0080.00816.05
7.3.170.0120.00616.45
7.3.160.0060.01616.11
7.3.120.0080.00414.53
7.3.110.0100.00714.72
7.3.100.0090.00614.65
7.3.90.0090.00314.70
7.3.80.0040.00714.75
7.3.70.0060.00914.71
7.3.60.0030.00914.73
7.3.50.0040.00814.63
7.3.40.0100.00314.52
7.3.30.0050.00814.46
7.3.20.0110.00416.55
7.3.10.0110.00416.56
7.3.00.0060.00616.39
7.2.330.0120.00916.29
7.2.320.0170.00016.47
7.2.310.0070.01416.15
7.2.300.0060.01116.52
7.2.290.0100.01316.47
7.2.250.0130.00314.89
7.2.240.0070.01314.73
7.2.230.0140.00015.06
7.2.220.0060.00615.02
7.2.210.0030.00714.79
7.2.200.0080.00414.59
7.2.190.0000.01114.82
7.2.180.0030.00714.54
7.2.170.0150.00014.83
7.2.00.0110.00319.20
7.1.330.0070.00715.86
7.1.320.0100.00615.80
7.1.310.0070.00415.76
7.1.300.0060.00915.66
7.1.290.0090.00315.72
7.1.280.0080.00815.75
7.1.270.0000.01315.81
7.1.260.0120.00315.63
7.1.100.0070.00717.59
7.1.70.0060.00917.17
7.1.60.0100.01419.22
7.1.50.0140.00334.70
7.1.00.0070.07022.47
7.0.200.0000.00816.82
7.0.140.0030.05022.08
7.0.60.0000.04319.83
7.0.50.0130.04017.79
7.0.40.0000.09320.09
7.0.30.0300.04320.20
7.0.20.0400.06719.96
7.0.10.0070.05020.17
7.0.00.0030.04320.13
5.6.280.0070.07021.06
5.6.210.0070.06320.66
5.6.200.0130.07718.09
5.6.190.0100.08020.67
5.6.180.0300.08020.32
5.6.170.0370.06720.62
5.6.160.0130.08320.48
5.6.150.0030.08718.15
5.6.140.0030.04018.09
5.6.130.0030.06318.09
5.6.120.0130.07721.00
5.6.110.0000.04721.07
5.6.100.0030.05321.10
5.6.90.0070.08721.09
5.6.80.0130.07320.50
5.5.350.0270.07020.29
5.5.340.0100.08017.92
5.5.330.0100.06320.36
5.5.320.0130.04320.24
5.5.310.0230.04720.17
5.5.300.0030.08318.00
5.5.290.0070.08017.91
5.5.280.0100.08020.77
5.5.270.0070.08320.86
5.5.260.0200.04020.86
5.5.250.0000.04320.68
5.5.240.0000.03320.25
5.4.450.0100.06019.61
5.4.440.0200.06319.41
5.4.430.0100.06019.20
5.4.420.0200.05019.16
5.4.410.0170.05319.24
5.4.400.0230.04319.01
5.4.390.0200.05019.34
5.4.380.0230.04718.68
5.4.370.0170.05018.61
5.4.360.0170.05018.50
5.4.350.0170.05018.55
5.4.340.0170.05018.47
5.4.320.0100.06018.55
5.4.310.0100.05718.68
5.4.300.0030.06018.72
5.4.290.0130.05018.48
5.4.280.0000.07318.48
5.4.270.0270.04318.45
5.4.260.0070.06018.67
5.4.250.0170.05018.65
5.4.240.0100.06018.61
5.4.230.0230.05018.61
5.4.220.0170.05718.50
5.4.210.0130.05318.52
5.4.200.0100.06716.46
5.4.190.0200.04718.72
5.4.180.0170.05018.66
5.4.170.0170.05718.42
5.4.160.0170.05018.59
5.4.150.0200.05018.54
5.4.140.0200.05016.27
5.4.130.0230.04016.35
5.4.120.0100.05016.31
5.4.110.0070.05316.25
5.4.100.0200.04316.24
5.4.90.0170.04716.26
5.4.80.0130.05016.24
5.4.70.0200.04316.21
5.4.60.0200.04316.09
5.4.50.0170.04716.13
5.4.40.0200.06016.07
5.4.30.0170.04716.21
5.4.20.0170.07016.16
5.4.10.0070.05716.27
5.4.00.0370.04715.49
5.3.290.0130.06014.67
5.3.280.0170.05014.54
5.3.270.0130.05714.68
5.3.260.0100.05714.50
5.3.250.0170.05314.60
5.3.240.0230.04014.63
5.3.230.0200.04314.50
5.3.220.0170.04714.54
5.3.210.0100.05714.65
5.3.200.0130.04714.63
5.3.190.0100.05314.51
5.3.180.0130.05014.55
5.3.170.0170.04714.63
5.3.160.0200.04714.56
5.3.150.0130.05014.54
5.3.140.0200.05714.60
5.3.130.0170.05014.64
5.3.120.0270.04014.57
5.3.110.0170.05014.61
5.3.100.0170.04714.03
5.3.90.0100.05713.99
5.3.80.0100.06014.09
5.3.70.0130.07013.95
5.3.60.0200.05013.95
5.3.50.0070.06013.98
5.3.40.0130.05013.99
5.3.30.0030.07013.80
5.3.20.0100.05313.78
5.3.10.0130.05013.75
5.3.00.0000.06013.71
5.2.170.0170.03711.18
5.2.160.0130.04011.14
5.2.150.0070.04311.09
5.2.140.0030.05011.20
5.2.130.0100.04011.25
5.2.120.0170.03011.09
5.2.110.0070.04311.07
5.2.100.0100.04011.11
5.2.90.0170.04011.09
5.2.80.0070.05011.15
5.2.70.0070.05011.08
5.2.60.0170.03711.11
5.2.50.0100.04311.04
5.2.40.0030.05010.92
5.2.30.0170.03310.93
5.2.20.0100.04010.92
5.2.10.0070.04311.01
5.2.00.0100.04010.70
5.1.60.0030.03710.02
5.1.50.0070.04010.13
5.1.40.0130.03010.04
5.1.30.0100.03310.37
5.1.20.0030.04710.38
5.1.10.0070.04310.19
5.1.00.0130.04310.04
5.0.50.0100.0308.56
5.0.40.0130.0338.47
5.0.30.0130.0508.23
5.0.20.0130.0338.21
5.0.10.0100.0378.37
5.0.00.0100.0508.18
4.4.90.0100.0275.82
4.4.80.0100.0175.85
4.4.70.0030.0235.89
4.4.60.0100.0175.94
4.4.50.0000.0275.91
4.4.40.0130.0305.86
4.4.30.0000.0275.88
4.4.20.0030.0235.98
4.4.10.0030.0235.90
4.4.00.0100.0405.94
4.3.110.0070.0235.81
4.3.100.0100.0175.80
4.3.90.0030.0235.78
4.3.80.0100.0305.80
4.3.70.0070.0205.82
4.3.60.0170.0205.78
4.3.50.0100.0175.81
4.3.40.0030.0405.80
4.3.30.0070.0205.02
4.3.20.0070.0205.02
4.3.10.0000.0235.02
4.3.00.0130.0307.60

preferences:
57.49 ms | 400 KiB | 5 Q