3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = ' #vienna #wien #austria #view #travel #sky #holiday #vacation #ig_europe #landmark #reflections #ocean #europe #sky #reflection #water #people #sea #pretty #fun #street #lighthouse #skyline #topeuropephotos #photo #photos #river #city #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.0070.00718.56
8.3.50.0070.00718.31
8.3.40.0140.00018.61
8.3.30.0100.00618.67
8.3.20.0040.00419.34
8.3.10.0040.00423.66
8.3.00.0070.00020.58
8.2.180.0140.00018.20
8.2.170.0140.00722.96
8.2.160.0040.01120.80
8.2.150.0080.00025.66
8.2.140.0090.00024.66
8.2.130.0000.00819.95
8.2.120.0040.00426.35
8.2.110.0060.00321.13
8.2.100.0080.00417.84
8.2.90.0000.00817.88
8.2.80.0000.00817.97
8.2.70.0000.00818.05
8.2.60.0000.00718.22
8.2.50.0000.00818.10
8.2.40.0020.00519.33
8.2.30.0020.00519.38
8.2.20.0070.00018.04
8.2.10.0040.00318.12
8.2.00.0050.00317.58
8.1.280.0000.01425.92
8.1.270.0060.00318.81
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0070.00422.13
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00817.47
8.1.190.0000.00917.22
8.1.180.0050.00318.10
8.1.170.0000.00818.50
8.1.160.0000.00718.84
8.1.150.0000.00718.92
8.1.140.0030.00322.18
8.1.130.0070.00020.18
8.1.120.0000.00717.49
8.1.110.0080.00017.35
8.1.100.0000.00817.43
8.1.90.0040.00417.46
8.1.80.0030.00617.43
8.1.70.0050.00317.33
8.1.60.0030.00617.61
8.1.50.0000.00817.52
8.1.40.0000.00817.52
8.1.30.0080.00017.61
8.1.20.0080.00017.54
8.1.10.0040.00717.58
8.1.00.0040.00417.53
8.0.300.0000.00818.77
8.0.290.0080.00016.75
8.0.280.0070.00018.39
8.0.270.0040.00417.25
8.0.260.0050.00218.48
8.0.250.0070.00016.93
8.0.240.0040.00416.97
8.0.230.0050.00216.82
8.0.220.0080.00016.86
8.0.210.0030.00316.90
8.0.200.0040.00416.93
8.0.190.0040.00416.95
8.0.180.0040.00416.80
8.0.170.0040.00416.88
8.0.160.0000.00716.83
8.0.150.0030.00516.71
8.0.140.0050.00216.82
8.0.130.0030.00313.35
8.0.120.0000.00716.83
8.0.110.0040.00416.79
8.0.100.0050.00216.93
8.0.90.0000.00716.86
8.0.80.0080.00816.88
8.0.70.0050.00316.89
8.0.60.0070.00016.91
8.0.50.0000.00716.95
8.0.30.0090.01017.07
8.0.20.0140.01117.40
8.0.10.0000.00816.79
8.0.00.0050.01616.99
7.4.330.0040.00015.55
7.4.320.0030.00316.49
7.4.300.0000.00616.59
7.4.290.0040.00416.59
7.4.280.0030.00616.56
7.4.270.0000.00716.62
7.4.260.0070.00016.50
7.4.250.0030.00316.58
7.4.240.0040.00416.48
7.4.230.0070.00016.62
7.4.220.0000.00716.62
7.4.210.0080.01016.53
7.4.200.0030.00316.48
7.4.160.0100.00616.49
7.4.140.0110.00917.86
7.4.130.0090.00916.51
7.4.120.0080.01016.52
7.4.110.0090.00916.53
7.4.100.0060.01216.45
7.4.90.0130.00816.51
7.4.80.0090.00919.39
7.4.70.0130.00516.42
7.4.60.0170.00416.42
7.4.50.0040.00716.41
7.4.40.0160.00016.70
7.3.330.0030.00313.31
7.3.320.0050.00013.26
7.3.310.0000.00816.36
7.3.300.0030.00316.36
7.3.290.0000.00716.38
7.3.280.0090.00916.34
7.3.260.0100.00916.42
7.3.240.0060.01216.44
7.3.230.0120.00616.38
7.3.210.0100.00616.64
7.3.200.0130.00716.38
7.3.190.0070.01016.60
7.3.180.0120.00316.50
7.3.170.0160.00816.39
7.3.160.0130.00816.47
7.2.330.0140.00516.49
7.2.320.0090.00916.59
7.2.310.0080.00816.74
7.2.300.0060.01016.71
7.2.290.0100.00716.71

preferences:
55.78 ms | 401 KiB | 5 Q