3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = ' #portugal #sagres #cabodesaovicente #love #travel #couple #holiday #vacation #ig_europe #landmark #reflections #ocean #europe #sky #reflection #water #people #sea #pretty #fun #beach #house #village #topeuropephotos #photo #photos #cloud #stone #sunset ' ; $pcs = array_map('trim', explode('#', $tags)); $found=[]; foreach($pcs as $piece){ if (array_key_exists($piece, $found)){ var_dump("tag already found: $piece"); continue; } $found[$piece]=true; } var_dump("found ".count($found)." tags");

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.0040.01118.40
8.3.50.0090.00618.15
8.3.40.0070.00718.79
8.3.30.0120.00318.70
8.3.20.0040.00418.87
8.3.10.0040.00421.60
8.3.00.0000.00720.66
8.2.180.0100.00318.16
8.2.170.0040.01122.96
8.2.160.0000.01321.04
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00419.89
8.2.120.0000.00826.35
8.2.110.0000.01022.25
8.2.100.0030.01017.84
8.2.90.0050.00317.75
8.2.80.0040.00417.97
8.2.70.0040.00417.93
8.2.60.0000.00818.16
8.2.50.0040.00418.10
8.2.40.0050.00319.38
8.2.30.0040.00419.37
8.2.20.0080.00418.15
8.2.10.0040.00418.14
8.2.00.0030.00517.77
8.1.280.0160.00625.92
8.1.270.0080.00019.01
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.74
8.1.230.0040.00717.64
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0060.00317.48
8.1.190.0030.00717.23
8.1.180.0080.00018.10
8.1.170.0000.00818.40
8.1.160.0000.00718.87
8.1.150.0030.00518.87
8.1.140.0050.00223.92
8.1.130.0030.00320.18
8.1.120.0030.00317.39
8.1.110.0060.00317.47
8.1.100.0040.00417.47
8.1.90.0040.00417.46
8.1.80.0040.00417.33
8.1.70.0050.00517.48
8.1.60.0030.00517.59
8.1.50.0040.00417.39
8.1.40.0000.00817.45
8.1.30.0040.00417.60
8.1.20.0040.00417.49
8.1.10.0000.00817.43
8.1.00.0000.00917.48
8.0.300.0050.00318.77
8.0.290.0080.00016.75
8.0.280.0000.00718.43
8.0.270.0030.00317.26
8.0.260.0030.00318.32
8.0.250.0000.00716.89
8.0.240.0070.00016.82
8.0.230.0000.00716.92
8.0.220.0070.00016.87
8.0.210.0030.00316.92
8.0.200.0060.00016.83
8.0.190.0040.00416.94
8.0.180.0040.00416.86
8.0.170.0040.00416.79
8.0.160.0040.00416.88
8.0.150.0080.00016.76
8.0.140.0050.00316.86
8.0.130.0000.00513.24
8.0.120.0040.00416.69
8.0.110.0000.00716.75
8.0.100.0040.00416.75
8.0.90.0000.00916.87
8.0.80.0050.01616.79
8.0.70.0040.00416.74
8.0.60.0080.00016.88
8.0.50.0020.00516.85
8.0.30.0080.00917.21
8.0.20.0110.00717.40
8.0.10.0040.00416.89
8.0.00.0070.01316.86
7.4.330.0000.00615.55
7.4.320.0060.00016.51
7.4.300.0000.00716.59
7.4.290.0030.00316.40
7.4.280.0040.00416.44
7.4.270.0030.00316.53
7.4.260.0030.00316.60
7.4.250.0030.00316.47
7.4.240.0070.00016.53
7.4.230.0070.00016.66
7.4.220.0040.00416.68
7.4.210.0050.00916.54
7.4.200.0070.00016.54
7.4.160.0070.00916.58
7.4.140.0110.00717.86
7.4.130.0070.01116.32
7.4.120.0090.00816.50
7.4.110.0100.01316.34
7.4.100.0070.01116.71
7.4.90.0100.00716.40
7.4.80.0060.01219.39
7.4.70.0110.00916.45
7.4.60.0080.00816.54
7.4.50.0000.01616.35
7.4.40.0100.00716.49
7.3.330.0030.00313.07
7.3.320.0000.00513.16
7.3.310.0030.00516.43
7.3.300.0030.00316.31
7.3.290.0000.00716.18
7.3.280.0070.00716.30
7.3.260.0130.00716.46
7.3.240.0090.00816.42
7.3.230.0170.00816.39
7.3.210.0130.00316.36
7.3.200.0090.00616.63
7.3.190.0160.00716.55
7.3.180.0090.00916.41
7.3.170.0150.00316.34
7.3.160.0090.00616.54
7.2.330.0110.00816.68
7.2.320.0110.01216.78
7.2.310.0180.00616.41
7.2.300.0090.00616.77
7.2.290.0060.00916.70

preferences:
42.19 ms | 401 KiB | 5 Q