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 #beach #lighthouse #cliff #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.0120.00318.31
8.3.50.0060.00917.92
8.3.40.0040.01118.67
8.3.30.0130.00318.71
8.3.20.0040.00419.47
8.3.10.0080.00021.91
8.3.00.0040.00420.58
8.2.180.0110.00418.43
8.2.170.0040.01122.96
8.2.160.0000.01520.86
8.2.150.0080.00024.18
8.2.140.0050.00524.66
8.2.130.0040.00419.89
8.2.120.0000.00726.35
8.2.110.0070.00320.97
8.2.100.0040.00819.70
8.2.90.0040.00417.88
8.2.80.0050.00317.97
8.2.70.0050.00317.93
8.2.60.0000.00818.22
8.2.50.0030.00618.10
8.2.40.0030.00619.33
8.2.30.0070.00019.30
8.2.20.0000.00718.12
8.2.10.0040.00418.14
8.2.00.0030.00517.84
8.1.280.0160.00325.92
8.1.270.0080.00018.79
8.1.260.0030.00526.35
8.1.250.0050.00328.09
8.1.240.0050.00522.59
8.1.230.0070.00422.11
8.1.220.0040.00417.76
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0040.00418.80
8.1.150.0080.00018.88
8.1.140.0070.00022.13
8.1.130.0000.00720.05
8.1.120.0000.00717.47
8.1.110.0060.00317.46
8.1.100.0040.00417.34
8.1.90.0030.00517.43
8.1.80.0020.00517.33
8.1.70.0000.00717.45
8.1.60.0030.00617.61
8.1.50.0080.00017.56
8.1.40.0050.00217.49
8.1.30.0000.00817.53
8.1.20.0000.00817.62
8.1.10.0030.00617.50
8.1.00.0050.00317.48
8.0.300.0030.00518.77
8.0.290.0030.00616.75
8.0.280.0070.00018.45
8.0.270.0030.00317.14
8.0.260.0000.00718.35
8.0.250.0030.00316.87
8.0.240.0000.00816.98
8.0.230.0030.00316.95
8.0.220.0050.00516.92
8.0.210.0070.00016.88
8.0.200.0000.00716.87
8.0.190.0000.00817.00
8.0.180.0030.00316.80
8.0.170.0030.00616.89
8.0.160.0070.00016.86
8.0.150.0040.00416.86
8.0.140.0000.00716.81
8.0.130.0060.00013.30
8.0.120.0070.00016.88
8.0.110.0000.00816.89
8.0.100.0040.00416.75
8.0.90.0000.00816.84
8.0.80.0090.00916.87
8.0.70.0000.00716.79
8.0.60.0050.00216.86
8.0.50.0040.00416.90
8.0.30.0120.00717.16
8.0.20.0070.01517.40
8.0.10.0000.00716.82
8.0.00.0110.00716.70
7.4.330.0050.00015.55
7.4.320.0060.00016.64
7.4.300.0030.00316.59
7.4.290.0000.00716.42
7.4.280.0000.00916.50
7.4.270.0040.00416.51
7.4.260.0070.00016.61
7.4.250.0030.00316.54
7.4.240.0050.00316.57
7.4.230.0000.00716.66
7.4.220.0000.00716.59
7.4.210.0090.00916.56
7.4.200.0000.00716.47
7.4.160.0100.00916.53
7.4.140.0100.01017.86
7.4.130.0070.01016.47
7.4.120.0080.01116.48
7.4.110.0030.01516.78
7.4.100.0040.01216.63
7.4.90.0080.00816.45
7.4.80.0070.01019.39
7.4.70.0100.01016.61
7.4.60.0120.00516.52
7.4.50.0030.01416.60
7.4.40.0070.01016.59
7.3.330.0050.00013.27
7.3.320.0000.00513.13
7.3.310.0040.00416.15
7.3.300.0000.00716.35
7.3.290.0040.00216.32
7.3.280.0080.00816.36
7.3.260.0150.00416.38
7.3.240.0100.00916.43
7.3.230.0100.00716.37
7.3.210.0150.00316.31
7.3.200.0070.01416.64
7.3.190.0030.01316.54
7.3.180.0000.01516.46
7.3.170.0110.00716.61
7.3.160.0130.01016.42
7.2.330.0090.00916.61
7.2.320.0100.01016.76
7.2.310.0110.01016.71
7.2.300.0060.01316.75
7.2.290.0140.00316.41

preferences:
37.05 ms | 401 KiB | 5 Q