3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oldpost = "345,346,347"; $posts = explode(",",$oldpost); $index = array_search(346,$posts); if($index !== false){ unset($posts[$index]); } $new_post = implode(",",$posts); echo $new_post;

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.0140.00318.43
8.3.50.0100.00316.29
8.3.40.0030.01318.71
8.3.30.0110.00418.56
8.3.20.0080.00020.60
8.3.10.0000.00721.92
8.3.00.0060.00320.43
8.2.180.0150.00416.35
8.2.170.0140.00322.96
8.2.160.0100.00320.35
8.2.150.0000.01024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0060.00322.04
8.2.100.0110.00017.91
8.2.90.0000.00818.03
8.2.80.0030.00519.15
8.2.70.0080.00017.50
8.2.60.0000.00818.16
8.2.50.0040.00418.05
8.2.40.0050.00318.12
8.2.30.0030.00319.31
8.2.20.0040.00418.18
8.2.10.0050.00219.18
8.2.00.0040.00419.24
8.1.280.0040.01125.92
8.1.270.0060.00320.79
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00324.02
8.1.230.0070.00321.03
8.1.220.0000.00817.79
8.1.210.0000.01118.77
8.1.200.0030.00617.38
8.1.190.0080.00017.21
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0000.00719.04
8.1.150.0070.00018.74
8.1.140.0000.00918.82
8.1.130.0000.00717.35
8.1.120.0000.00817.42
8.1.110.0070.00017.47
8.1.100.0000.00717.33
8.1.90.0000.00717.42
8.1.80.0040.00417.28
8.1.70.0030.00317.38
8.1.60.0040.00417.51
8.1.50.0000.00817.44
8.1.40.0030.00617.35
8.1.30.0000.00817.61
8.1.20.0080.00017.56
8.1.10.0030.00517.48
8.1.00.0040.00417.46
8.0.300.0040.00420.01
8.0.290.0080.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00718.00
8.0.260.0030.00316.87
8.0.250.0070.00016.98
8.0.240.0030.00316.96
8.0.230.0040.00416.82
8.0.220.0060.00316.84
8.0.210.0030.00316.81
8.0.200.0000.00716.86
8.0.190.0030.00316.77
8.0.180.0040.00416.83
8.0.170.0030.00616.79
8.0.160.0040.00416.93
8.0.150.0030.00616.79
8.0.140.0070.00016.74
8.0.130.0000.00613.27
8.0.120.0000.00916.79
8.0.110.0000.00716.89
8.0.100.0030.00316.71
8.0.90.0000.00916.72
8.0.80.0040.01116.77
8.0.70.0050.00316.79
8.0.60.0000.00716.95
8.0.50.0000.00716.69
8.0.30.0100.00716.95
8.0.20.0080.01117.26
8.0.10.0040.00416.87
8.0.00.0070.01116.96
7.4.330.0020.00216.65
7.4.320.0000.00616.65
7.4.300.0060.00016.59
7.4.290.0000.00716.55
7.4.280.0040.00416.54
7.4.270.0040.00416.52
7.4.260.0050.00013.20
7.4.250.0070.00016.54
7.4.240.0030.00416.50
7.4.230.0040.00416.50
7.4.220.0040.00416.50
7.4.210.0110.00316.71
7.4.200.0030.00316.31
7.4.130.0140.00516.54
7.4.120.0120.01216.41
7.4.110.0110.00616.66
7.4.100.0140.00516.45
7.4.90.0070.01016.51
7.4.80.0060.01119.39
7.4.70.0140.00316.59
7.4.60.0080.00816.51
7.4.50.0070.01016.36
7.4.40.0090.00916.66
7.4.20.0120.00916.45
7.4.10.0060.01316.29
7.4.00.0100.00716.32
7.3.330.0030.00716.30
7.3.320.0050.00013.19
7.3.310.0000.00716.30
7.3.300.0030.00316.20
7.3.290.0070.00916.27
7.3.260.0090.00916.54
7.3.240.0100.00816.48
7.3.230.0060.01016.25
7.3.210.0110.00716.40
7.3.200.0070.01016.53
7.3.190.0060.00916.35
7.3.180.0040.01216.57
7.3.170.0100.01016.39
7.3.160.0100.00716.17
7.3.140.0120.00916.15
7.3.130.0030.01416.41
7.3.120.0190.00016.38
7.3.110.0030.01316.23
7.3.100.0120.00616.32
7.3.90.0120.01216.34
7.3.80.0130.00916.19
7.3.70.0070.01516.41
7.3.60.0090.00816.39
7.3.50.0070.01416.14
7.3.40.0150.00516.25
7.3.30.0070.01516.35
7.3.20.0070.01118.00
7.3.10.0110.00718.08
7.3.00.0180.00418.11
7.2.330.0090.00916.34
7.2.320.0100.00516.49
7.2.310.0080.00716.69
7.2.300.0090.01516.62
7.2.290.0110.00616.66
7.2.270.0030.01416.35
7.2.260.0100.00716.39
7.2.250.0150.00916.34
7.2.240.0090.00916.58
7.2.230.0070.01016.64
7.2.220.0100.01416.60
7.2.210.0070.01316.20
7.2.200.0090.00916.62
7.2.190.0030.01516.58
7.2.180.0070.01116.46
7.2.170.0090.00916.36
7.2.160.0090.01116.45
7.2.150.0190.00618.36
7.2.140.0140.00718.35
7.2.130.0030.01718.47
7.2.120.0120.01218.39
7.2.110.0150.00618.36
7.2.100.0070.01018.43
7.2.90.0080.01418.32
7.2.80.0110.00718.47
7.2.70.0070.01118.37
7.2.60.0120.00618.41
7.2.50.0080.01118.45
7.2.40.0120.00618.41
7.2.30.0090.00918.35
7.2.20.0040.01618.37
7.2.10.0110.00818.45
7.2.00.0120.00818.33

preferences:
60.21 ms | 400 KiB | 5 Q