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 #capital #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.40.0060.01218.89
8.3.30.0090.00918.84
8.3.20.0040.00419.19
8.3.10.0080.00021.90
8.3.00.0080.00020.58
8.2.170.0060.00922.96
8.2.160.0100.00320.63
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0070.00719.77
8.2.120.0040.00426.35
8.2.110.0090.00321.00
8.2.100.0110.00017.84
8.2.90.0040.00419.39
8.2.80.0080.00317.97
8.2.70.0030.00518.05
8.2.60.0030.00518.16
8.2.50.0030.00518.10
8.2.40.0050.00219.33
8.2.30.0000.00719.19
8.2.20.0000.00718.09
8.2.10.0000.00717.99
8.2.00.0050.00317.57
8.1.270.0050.00318.83
8.1.260.0120.00326.35
8.1.250.0040.00828.09
8.1.240.0030.00622.68
8.1.230.0080.00321.02
8.1.220.0000.00817.77
8.1.210.0100.00018.91
8.1.200.0040.00417.48
8.1.190.0080.00016.88
8.1.180.0040.00418.10
8.1.170.0040.00418.56
8.1.160.0070.00018.88
8.1.150.0040.00418.80
8.1.140.0050.00222.04
8.1.130.0030.00320.00
8.1.120.0000.00717.47
8.1.110.0000.00817.44
8.1.100.0030.00517.43
8.1.90.0060.00317.37
8.1.80.0040.00417.46
8.1.70.0050.00317.46
8.1.60.0030.00617.46
8.1.50.0040.00417.39
8.1.40.0050.00317.48
8.1.30.0030.00517.58
8.1.20.0000.00917.57
8.1.10.0030.00717.54
8.1.00.0050.00317.49
8.0.300.0040.00419.86
8.0.290.0000.00816.75
8.0.280.0000.00718.39
8.0.270.0030.00317.24
8.0.260.0050.00218.35
8.0.250.0040.00416.98
8.0.240.0040.00416.96
8.0.230.0030.00316.91
8.0.220.0050.00316.89
8.0.210.0000.00716.82
8.0.200.0040.00416.98
8.0.190.0030.00516.85
8.0.180.0000.00816.86
8.0.170.0040.00416.91
8.0.160.0070.00016.88
8.0.150.0020.00516.90
8.0.140.0040.00416.86
8.0.130.0030.00313.30
8.0.120.0000.00816.88
8.0.110.0030.00616.79
8.0.100.0000.00716.80
8.0.90.0000.00816.89
8.0.80.0110.00516.82
8.0.70.0050.00216.89
8.0.60.0000.00716.89
8.0.50.0000.00716.72
8.0.30.0100.00717.08
8.0.20.0090.00917.40
8.0.10.0000.00716.83
8.0.00.0140.00416.71
7.4.330.0000.00415.55
7.4.320.0050.00216.51
7.4.300.0000.00616.54
7.4.290.0000.00716.50
7.4.280.0000.00816.49
7.4.270.0050.00316.55
7.4.260.0000.00716.50
7.4.250.0030.00316.47
7.4.240.0040.00416.61
7.4.230.0040.00416.48
7.4.220.0050.00216.43
7.4.210.0120.00316.58
7.4.200.0000.00616.43
7.4.160.0100.00616.45
7.4.140.0140.00717.86
7.4.130.0090.01516.68
7.4.120.0090.01016.50
7.4.110.0230.00016.63
7.4.100.0110.00816.47
7.4.90.0190.00016.56
7.4.80.0070.01019.39
7.4.70.0090.01216.48
7.4.60.0060.00916.29
7.4.50.0110.00716.29
7.4.40.0070.01016.63
7.3.330.0000.00513.24
7.3.320.0000.00513.13
7.3.310.0030.00616.47
7.3.300.0040.00416.37
7.3.290.0000.00716.24
7.3.280.0080.00916.34
7.3.260.0090.01016.32
7.3.240.0060.01216.49
7.3.230.0060.00916.61
7.3.210.0070.01116.27
7.3.200.0160.00016.57
7.3.190.0120.00916.35
7.3.180.0060.01016.50
7.3.170.0100.01016.26
7.3.160.0160.00016.36
7.2.330.0090.00916.56
7.2.320.0180.00016.64
7.2.310.0130.00316.63
7.2.300.0100.00616.79
7.2.290.0030.01716.46

preferences:
54.28 ms | 400 KiB | 5 Q