3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "1385|1385|1385|1373|1373|1385|1373|1373|1373"; $b = explode("|", $a); $c = []; foreach($b as $id){ if (!in_array($id, $b)) $c[] = $id; } var_dump(join("|", $c));

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.0080.00818.18
8.3.50.0130.00618.33
8.3.40.0040.01118.63
8.3.30.0150.00018.72
8.3.20.0040.00419.16
8.3.10.0080.00023.53
8.3.00.0070.00020.58
8.2.180.0090.00616.63
8.2.170.0090.00622.96
8.2.160.0140.00420.35
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00317.91
8.2.120.0000.00826.35
8.2.110.0060.00319.26
8.2.100.0110.00018.22
8.2.90.0040.00417.63
8.2.80.0080.00018.91
8.2.70.0050.00317.80
8.2.60.0040.00418.09
8.2.50.0030.00518.10
8.2.40.0040.00419.52
8.2.30.0000.00719.18
8.2.20.0030.00617.99
8.2.10.0030.00718.04
8.2.00.0060.00317.80
8.1.280.0100.00325.92
8.1.270.0040.00420.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.35
8.1.230.0000.01118.86
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0000.00818.64
8.1.160.0080.00018.89
8.1.150.0040.00418.89
8.1.140.0040.00422.14
8.1.130.0070.00020.27
8.1.120.0000.00817.47
8.1.110.0040.00417.51
8.1.100.0020.00517.48
8.1.90.0060.00317.46
8.1.80.0000.01017.35
8.1.70.0030.00317.34
8.1.60.0030.00517.48
8.1.50.0030.00617.43
8.1.40.0040.00417.47
8.1.30.0000.00817.64
8.1.20.0050.00317.52
8.1.10.0040.00417.41
8.1.00.0030.00517.41
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.33
8.0.270.0030.00317.18
8.0.260.0030.00318.37
8.0.250.0070.00016.97
8.0.240.0000.00616.94
8.0.230.0070.00016.95
8.0.220.0000.00616.90
8.0.210.0030.00316.80
8.0.200.0030.00316.84
8.0.190.0040.00416.91
8.0.180.0040.00416.75
8.0.170.0030.00616.88
8.0.160.0040.00416.86
8.0.150.0030.00616.95
8.0.140.0030.00316.77
8.0.130.0030.00313.32
8.0.120.0070.00016.79
8.0.110.0040.00316.70
8.0.100.0040.00416.93
8.0.90.0000.00716.84
8.0.80.0100.00816.80
8.0.70.0040.00416.93
8.0.60.0050.00316.80
8.0.50.0050.00216.75
8.0.30.0110.00717.26
8.0.20.0090.00917.40
8.0.10.0040.00416.89
8.0.00.0090.00916.81
7.4.330.0050.00015.55
7.4.320.0000.00716.41
7.4.300.0000.00716.61
7.4.290.0000.00616.60
7.4.280.0000.00816.60
7.4.270.0030.00316.43
7.4.260.0000.00716.60
7.4.250.0000.00916.52
7.4.240.0070.00016.62
7.4.230.0030.00316.40
7.4.220.0040.00416.57
7.4.210.0080.01016.57
7.4.200.0030.00316.63
7.4.160.0090.00816.53
7.4.140.0100.00917.86
7.4.130.0090.00916.51
7.4.120.0080.01016.51
7.4.110.0090.00916.27
7.4.100.0100.00716.46
7.4.90.0070.01016.52
7.4.80.0130.00319.39
7.4.70.0110.00516.47
7.4.60.0090.00616.37
7.4.50.0090.00516.72
7.4.40.0100.00616.39
7.3.330.0000.00613.11
7.3.320.0060.00013.14
7.3.310.0100.00016.32
7.3.300.0030.00316.15
7.3.290.0030.00316.25
7.3.280.0070.01016.32
7.3.260.0110.01116.39
7.3.240.0080.01016.32
7.3.230.0070.01016.38
7.3.210.0130.00316.30
7.3.200.0090.00916.19
7.3.190.0090.01216.36
7.3.180.0070.01116.47
7.3.170.0140.00716.37
7.3.160.0100.00716.27
7.2.330.0100.00716.51
7.2.320.0090.00616.54
7.2.310.0080.00816.74
7.2.300.0030.01316.45
7.2.290.0130.00316.48

preferences:
57.1 ms | 400 KiB | 5 Q