3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parts = explode(';',"1352,13;21313"); print_r($parts); $returnVal = array_pop($parts); print_r($returnVal); echo "\nparts should now be one less"; print_r($parts); $newVal = implode(";",$parts); print_r($newVal);

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.77
8.3.30.0070.00718.96
8.3.20.0050.00320.13
8.3.10.0140.00022.09
8.3.00.0040.00422.37
8.2.170.0120.00622.96
8.2.160.0140.00019.04
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00419.23
8.2.110.0070.00322.20
8.2.100.0090.00317.91
8.2.90.0040.00418.22
8.2.80.0030.00619.77
8.2.70.0080.00017.38
8.2.60.0070.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0030.00718.09
8.2.20.0060.00317.58
8.2.10.0040.00419.29
8.2.00.0000.00817.48
8.1.270.0040.00422.24
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.05
8.1.230.0080.00321.04
8.1.220.0040.00417.74
8.1.210.0040.00418.90
8.1.200.0040.00417.22
8.1.190.0050.00317.43
8.1.180.0040.00418.10
8.1.170.0030.00518.50
8.1.160.0070.00421.87
8.1.150.0020.00518.64
8.1.140.0040.00417.44
8.1.130.0070.00017.76
8.1.120.0040.00417.33
8.1.110.0040.00417.36
8.1.100.0030.00317.41
8.1.90.0030.00317.36
8.1.80.0000.00817.34
8.1.70.0000.00717.30
8.1.60.0000.00717.39
8.1.50.0000.00717.32
8.1.40.0040.00417.36
8.1.30.0040.00417.45
8.1.20.0040.00417.47
8.1.10.0000.00717.47
8.1.00.0030.00617.47
8.0.300.0030.00320.21
8.0.290.0040.00417.28
8.0.280.0000.00718.34
8.0.270.0070.00017.22
8.0.260.0040.00416.81
8.0.250.0040.00416.76
8.0.240.0000.00716.85
8.0.230.0000.00916.84
8.0.220.0070.00016.80
8.0.210.0030.00616.83
8.0.200.0030.00316.93
8.0.190.0000.00816.86
8.0.180.0000.00716.82
8.0.170.0030.00316.81
8.0.160.0000.00716.76
8.0.150.0080.00016.66
8.0.140.0000.00716.82
8.0.130.0000.00513.25
8.0.120.0000.00716.86
8.0.110.0000.00816.63
8.0.100.0000.00816.83
8.0.90.0070.00016.62
8.0.80.0140.00316.87
8.0.70.0000.00716.68
8.0.60.0030.00316.88
8.0.50.0030.00316.80
8.0.30.0120.01117.01
8.0.20.0130.00817.40
8.0.10.0000.00917.02
8.0.00.0180.01716.69
7.4.330.0000.00615.00
7.4.320.0000.00616.53
7.4.300.0000.00616.40
7.4.290.0000.00716.39
7.4.280.0070.00016.32
7.4.270.0040.00416.41
7.4.260.0030.00516.52
7.4.250.0040.00416.38
7.4.240.0050.00316.45
7.4.230.0030.00316.37
7.4.220.0100.00716.52
7.4.210.0040.01216.46
7.4.200.0070.00016.50
7.4.190.0030.00316.44
7.4.160.0160.00016.41
7.4.150.0050.01317.40
7.4.140.0110.00617.86
7.4.130.0090.01216.46
7.4.120.0090.00816.40
7.4.110.0000.01616.28
7.4.100.0100.00716.39
7.4.90.0140.00416.44
7.4.80.0090.01219.39
7.4.70.0160.00616.41
7.4.60.0130.01016.32
7.4.50.0050.00016.27
7.4.40.0040.01422.77
7.4.30.0100.00716.23
7.4.00.0090.00914.56
7.3.330.0030.00213.11
7.3.320.0000.00512.86
7.3.310.0000.00715.96
7.3.300.0030.00316.11
7.3.290.0070.00716.19
7.3.280.0080.00816.12
7.3.270.0090.00617.40
7.3.260.0070.01016.58
7.3.250.0120.01016.23
7.3.240.0090.00916.37
7.3.230.0070.01016.45
7.3.210.0060.01216.46
7.3.200.0080.00819.39
7.3.190.0100.01016.22
7.3.180.0080.00916.14
7.3.170.0120.00316.41
7.3.160.0100.01016.46
7.3.120.0070.01014.82
7.3.10.0040.00916.68
7.3.00.0060.00316.60
7.2.330.0100.00716.46
7.2.320.0170.00716.42
7.2.310.0130.01016.68
7.2.300.0110.01116.49
7.2.290.0100.01216.61
7.2.130.0040.00716.46
7.2.120.0040.01416.95
7.2.110.0030.00716.88
7.2.100.0040.01216.71
7.2.90.0000.01716.80
7.2.80.0100.00316.65
7.2.70.0090.00616.66
7.2.60.0070.00516.87
7.2.50.0060.00916.91
7.2.40.0090.00917.00
7.2.30.0060.00616.96
7.2.20.0070.00716.74
7.2.10.0040.01116.73
7.2.00.0090.00517.94
7.1.250.0090.00615.89
7.1.200.0000.01315.71
7.1.100.0000.01018.12
7.1.70.0020.00516.91
7.1.60.0070.00416.91
7.1.50.0080.00316.82
7.1.00.0030.07722.44
7.0.200.0060.00916.72
7.0.140.0070.07022.09
7.0.60.0170.06319.96
7.0.50.0130.04317.87
7.0.40.0100.05020.11
7.0.30.0370.07720.07
7.0.20.0330.07320.07
7.0.10.0270.08720.21
7.0.00.0070.05020.30
5.6.280.0070.07020.90
5.6.210.0100.07720.54
5.6.200.0100.04718.16
5.6.190.0030.09020.50
5.6.180.3670.04020.49
5.6.170.0270.08720.54
5.6.160.0100.04020.57
5.6.150.0130.04718.34
5.6.140.0000.04718.23
5.6.130.0100.08018.14
5.6.120.0030.04320.99
5.6.110.0170.05721.11
5.6.100.0030.09020.96
5.6.90.0030.08720.96
5.6.80.0070.03720.52
5.6.70.0300.07320.32
5.5.350.0070.05720.38
5.5.340.0070.07717.95
5.5.330.0100.03720.21
5.5.320.0200.06020.35
5.5.310.0300.04020.32
5.5.300.0070.07717.98
5.5.290.0130.03018.01
5.5.280.0100.08320.68
5.5.270.0100.08020.75
5.5.260.0100.08320.83
5.5.250.0000.09020.68
5.5.240.0130.07720.02
5.4.450.0770.05319.61
5.4.440.0670.06319.60
5.4.430.0070.06019.59
5.4.420.0100.05719.31
5.4.410.0130.05319.41
5.4.400.0070.05018.87
5.4.390.0030.05718.75
5.4.380.0200.06018.71
5.4.370.0300.04018.59
5.4.360.0230.05018.78
5.4.350.0200.05018.76
5.4.340.0270.05018.50
5.4.320.0030.04012.48
5.4.310.0040.04112.48
5.4.300.0070.03712.48
5.4.290.0040.04012.48
5.4.280.0080.03312.37
5.4.270.0030.07718.91
5.4.260.0100.07319.01
5.4.250.0070.06318.99
5.4.240.0100.05718.99
5.4.230.0070.06718.91
5.4.220.0130.05718.95
5.4.210.0100.06719.00
5.4.200.0100.06018.97
5.4.190.0070.07318.93
5.4.180.0030.06319.08
5.4.170.0130.08019.13
5.4.160.0200.05019.02
5.4.150.0170.05018.93
5.4.140.0130.07016.71
5.4.130.0130.04716.72
5.4.120.0030.08316.38
5.4.110.0170.05016.53
5.4.100.0070.05716.67
5.4.90.0170.06316.71
5.4.80.0170.05716.68
5.4.70.0170.05316.61
5.4.60.0170.06316.39
5.4.50.0030.05716.39
5.4.40.0100.05716.66
5.4.30.0170.05716.59
5.4.20.0270.03016.39
5.4.10.0170.05016.63
5.4.00.0130.04316.12
5.3.290.0090.03512.80
5.3.280.0170.05314.76
5.3.270.0030.07314.88
5.3.260.0100.08014.48
5.3.250.0170.06014.89
5.3.240.0170.05314.86
5.3.230.0200.04314.65
5.3.220.0100.06314.75
5.3.210.0070.07314.84
5.3.200.0100.04714.68
5.3.190.0100.05714.82
5.3.180.0330.05014.75
5.3.170.0170.06014.73
5.3.160.0100.07014.82
5.3.150.0030.07714.82
5.3.140.0200.06014.81
5.3.130.0130.05714.74
5.3.120.0030.06714.59
5.3.110.0230.06314.82
5.3.100.0130.04714.31
5.3.90.0100.05014.09
5.3.80.0000.05714.06
5.3.70.0200.04014.18
5.3.60.0200.05314.29
5.3.50.0170.06014.20
5.3.40.0070.07013.82
5.3.30.0200.05713.98
5.3.20.0070.06013.86
5.3.10.0170.06313.60
5.3.00.0030.05713.81
5.2.170.0100.04011.02
5.2.160.0070.05711.40
5.2.150.0030.06011.34
5.2.140.0070.05711.18
5.2.130.0070.04011.31
5.2.120.0130.04711.30
5.2.110.0100.05311.09
5.2.100.0130.03711.30
5.2.90.0100.04311.09
5.2.80.0170.04711.38
5.2.70.0170.03311.08
5.2.60.0030.05011.16
5.2.50.0070.04711.13
5.2.40.0030.04011.25
5.2.30.0000.06711.14
5.2.20.0030.04310.83
5.2.10.0030.04310.91
5.2.00.0070.05310.90
5.1.60.0030.0509.86
5.1.50.0100.04010.29
5.1.40.0030.05010.21
5.1.30.0100.03310.63
5.1.20.0100.05310.61
5.1.10.0070.04710.15
5.1.00.0200.04010.31
5.0.50.0100.0238.53
5.0.40.0030.0338.48
5.0.30.0070.0438.53
5.0.20.0070.0308.18
5.0.10.0130.0208.46
5.0.00.0100.0438.13
4.4.90.0070.0237.23
4.4.80.0030.0237.23
4.4.70.0130.0137.23
4.4.60.0070.0177.23
4.4.50.0070.0207.23
4.4.40.0000.0377.23
4.4.30.0070.0207.23
4.4.20.0070.0277.23
4.4.10.0000.0307.23
4.4.00.0130.0337.23
4.3.110.0070.0237.23
4.3.100.0070.0177.23
4.3.90.0030.0337.23
4.3.80.0070.0407.23
4.3.70.0100.0177.23
4.3.60.0100.0137.23
4.3.50.0100.0177.23
4.3.40.0030.0477.23
4.3.30.0100.0137.23
4.3.20.0000.0277.23
4.3.10.0030.0277.23
4.3.00.0170.0177.38

preferences:
36.42 ms | 400 KiB | 5 Q