3v4l.org

run code in 300+ PHP versions simultaneously
<?php $something = [3, 2, 1, 3, 6, 5, 1, 1]; $liste = []; foreach ($something as $value) { $found[$value] ??= $liste[] = $value; } var_export($liste);

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.5.30.0110.00719.76
8.5.20.0140.01019.39
8.5.10.0120.00516.64
8.5.00.0090.01120.09
8.4.180.0070.01521.97
8.4.170.0110.01120.41
8.4.160.0130.01120.66
8.4.150.0060.00716.87
8.4.140.0120.00917.52
8.4.130.0090.00618.73
8.4.120.0130.00624.25
8.4.110.0140.00618.57
8.4.100.0130.00517.89
8.4.90.0140.00617.37
8.4.80.0120.00917.71
8.4.70.0120.00817.57
8.4.60.0090.01117.55
8.4.50.0120.00719.42
8.4.40.0410.00817.39
8.4.30.0400.00817.63
8.4.20.0440.00717.52
8.4.10.0270.00317.43
8.3.300.0090.01120.63
8.3.290.0070.00320.61
8.3.280.0150.00618.26
8.3.270.0100.01016.36
8.3.260.0130.00816.38
8.3.250.0090.00718.80
8.3.240.0100.00417.25
8.3.230.0120.00716.31
8.3.220.0100.00717.26
8.3.210.0120.00816.64
8.3.200.0110.00816.63
8.3.190.0060.01216.63
8.3.180.0080.00816.57
8.3.170.0220.00716.61
8.3.160.0380.00816.60
8.3.150.0380.00716.76
8.3.140.0410.00616.44
8.3.130.0330.00816.36
8.3.120.0340.00716.45
8.3.110.0330.00816.35
8.3.100.0250.02116.27
8.3.90.0320.01416.52
8.3.80.0350.00716.54
8.3.70.0200.00316.45
8.3.60.0180.00316.61
8.3.50.0320.00716.74
8.3.40.0300.01017.23
8.3.30.0260.00617.32
8.3.20.0290.00317.21
8.3.10.0260.01017.25
8.3.00.0160.00517.47
8.2.300.0090.00820.30
8.2.290.0030.00520.34
8.2.280.0110.00716.50
8.2.270.0260.01116.27
8.2.260.0310.00716.21
8.2.250.0320.00616.89
8.2.240.0400.00316.12
8.2.230.0280.01016.65
8.2.220.0190.00516.44
8.2.210.0240.00416.25
8.2.200.0340.00316.47
8.2.190.0350.00316.44
8.2.180.0160.01616.45
8.2.170.0320.01017.59
8.2.160.0320.01117.56
8.2.150.0410.00017.24
8.2.140.0300.01117.54
8.2.130.0310.00917.32
8.2.120.0340.00617.21
8.2.110.0280.01217.46
8.2.100.0350.00417.75
8.2.90.0280.01317.48
8.2.80.0380.00917.30
8.2.70.0400.00917.12
8.2.60.0260.00617.66
8.2.50.0340.00717.50
8.2.40.0250.01117.71
8.2.30.0290.00317.49
8.2.20.0360.00017.55
8.2.10.0230.00917.62
8.2.00.0230.01117.48
8.1.340.0080.01120.13
8.1.320.0070.00515.83

preferences:
67.05 ms | 848 KiB | 5 Q