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 #austrian #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.0040.01118.28
8.3.50.0070.01018.11
8.3.40.0160.00018.97
8.3.30.0130.00318.63
8.3.20.0000.00819.20
8.3.10.0030.00623.27
8.3.00.0000.00820.64
8.2.180.0000.01518.17
8.2.170.0110.00422.96
8.2.160.0040.01120.84
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0060.00319.77
8.2.120.0040.00426.35
8.2.110.0030.01222.25
8.2.100.0040.00817.91
8.2.90.0000.00819.34
8.2.80.0070.00417.97
8.2.70.0050.00318.05
8.2.60.0080.00018.22
8.2.50.0040.00418.10
8.2.40.0080.00019.48
8.2.30.0040.00419.33
8.2.20.0000.00717.98
8.2.10.0070.00017.98
8.2.00.0030.00617.73
8.1.280.0100.00625.92
8.1.270.0000.00818.88
8.1.260.0000.00726.35
8.1.250.0070.00728.09
8.1.240.0100.00019.34
8.1.230.0040.00820.97
8.1.220.0000.00917.76
8.1.210.0090.00018.89
8.1.200.0030.00517.13
8.1.190.0030.00617.22
8.1.180.0030.00518.10
8.1.170.0040.00418.57
8.1.160.0000.00718.93
8.1.150.0000.00718.79
8.1.140.0000.00722.04
8.1.130.0030.00320.04
8.1.120.0000.00717.44
8.1.110.0040.00417.36
8.1.100.0040.00417.36
8.1.90.0060.00317.43
8.1.80.0040.00417.35
8.1.70.0030.00517.47
8.1.60.0030.00617.55
8.1.50.0030.00617.44
8.1.40.0000.00817.54
8.1.30.0050.00317.57
8.1.20.0050.00317.64
8.1.10.0050.00517.54
8.1.00.0080.00017.44
8.0.300.0000.00720.03
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0070.00017.24
8.0.260.0080.00018.34
8.0.250.0040.00416.96
8.0.240.0040.00416.98
8.0.230.0020.00516.91
8.0.220.0050.00316.86
8.0.210.0030.00316.92
8.0.200.0050.00216.93
8.0.190.0000.00716.84
8.0.180.0030.00616.79
8.0.170.0030.00616.93
8.0.160.0040.00416.88
8.0.150.0040.00416.80
8.0.140.0000.00716.89
8.0.130.0030.00313.32
8.0.120.0070.00016.81
8.0.110.0090.00016.86
8.0.100.0070.00016.76
8.0.90.0040.00416.90
8.0.80.0060.01016.81
8.0.70.0030.00516.75
8.0.60.0000.00716.75
8.0.50.0070.00016.73
8.0.30.0070.00917.13
8.0.20.0100.01117.40
8.0.10.0040.00416.79
8.0.00.0080.01016.65
7.4.330.0060.00015.55
7.4.320.0030.00316.52
7.4.300.0000.00716.52
7.4.290.0040.00416.40
7.4.280.0000.00816.59
7.4.270.0080.00016.42
7.4.260.0030.00316.50
7.4.250.0030.00316.45
7.4.240.0040.00416.42
7.4.230.0000.00716.66
7.4.220.0020.00516.66
7.4.210.0090.00816.57
7.4.200.0000.00716.48
7.4.160.0100.00816.51
7.4.140.0070.01317.86
7.4.130.0120.00616.48
7.4.120.0090.01016.59
7.4.110.0090.01216.48
7.4.100.0030.01516.49
7.4.90.0120.00616.50
7.4.80.0100.00619.39
7.4.70.0110.01116.57
7.4.60.0130.00316.61
7.4.50.0060.01016.65
7.4.40.0140.00316.50
7.3.330.0000.00513.07
7.3.320.0000.00513.26
7.3.310.0060.00316.33
7.3.300.0070.00016.35
7.3.290.0030.00316.35
7.3.280.0080.00916.31
7.3.260.0080.01016.47
7.3.240.0100.00916.38
7.3.230.0060.00916.55
7.3.210.0100.00716.65
7.3.200.0040.01516.30
7.3.190.0120.00616.61
7.3.180.0060.00916.41
7.3.170.0110.00516.38
7.3.160.0060.01016.63
7.2.330.0060.01216.85
7.2.320.0100.00716.70
7.2.310.0090.00616.39
7.2.300.0000.01816.52
7.2.290.0130.00316.73

preferences:
65.11 ms | 401 KiB | 5 Q