3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myarray = array('2020','2020'); $resultmatch = array_unique($myarray); var_dump($resultmatch);

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.4.20.0100.01024.05
8.4.10.0030.00623.62
8.3.150.0080.00018.97
8.3.140.0050.00518.99
8.3.130.0000.00818.45
8.3.120.0090.00020.48
8.3.110.0090.00020.94
8.3.100.0130.00718.30
8.3.90.0050.00326.77
8.3.80.0050.00518.43
8.3.70.0000.01816.50
8.3.60.0090.00616.63
8.3.50.0120.00316.45
8.3.40.0130.00320.47
8.3.30.0110.00318.72
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.260.0110.00718.80
8.2.250.0140.00016.69
8.2.240.0050.00517.13
8.2.230.0030.00622.58
8.2.220.0160.00024.06
8.2.210.0040.00426.77
8.2.200.0030.00618.16
8.2.190.0110.00416.58
8.2.180.0070.00716.63
8.2.170.0070.00718.68
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00920.71
8.2.110.0060.00320.94
8.2.100.0120.00017.66
8.2.90.0080.00017.72
8.2.80.0080.00019.06
8.2.70.0000.00917.63
8.2.60.0040.00417.63
8.2.50.0050.00317.55
8.2.40.0060.00317.62
8.2.30.0000.00717.57
8.2.20.0050.00219.19
8.2.10.0040.00418.02
8.2.00.0110.00617.63
8.1.310.0040.00416.56
8.1.300.0060.00316.20
8.1.290.0000.00930.84
8.1.280.0070.01125.92
8.1.270.0050.00224.66
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0080.00421.03
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0040.00417.00
8.1.180.0050.00318.10
8.1.170.0000.00718.81
8.1.160.0080.00018.90
8.1.150.0040.00418.60
8.1.140.0000.00917.47
8.1.130.0100.00417.71
8.1.120.0090.00617.75
8.1.110.0100.00517.42
8.1.100.0100.00517.44
8.1.90.0100.00617.44
8.1.80.0090.00617.45
8.1.70.0110.00517.75
8.1.60.0140.00417.54
8.1.50.0120.00517.80
8.1.40.0100.00717.53
8.1.30.0110.00717.87
8.1.20.0130.00617.55
8.1.10.0120.00517.48
8.1.00.0120.00617.42
8.0.300.0040.00420.04
8.0.290.0080.00016.63
8.0.280.0040.00417.85
8.0.270.0000.00718.04
8.0.260.0090.00717.41
8.0.250.0080.00717.41
8.0.240.0100.00417.41
8.0.230.0090.00517.41
8.0.220.0100.00417.41
8.0.210.0110.00217.41
8.0.200.0080.00517.41
8.0.190.0110.00317.41
8.0.180.0100.00417.41
8.0.170.0110.00417.41
8.0.160.0100.00317.41
8.0.150.0090.00617.41
8.0.140.0080.00617.41
8.0.130.0100.00417.41
8.0.120.0100.00417.60
8.0.110.0100.00517.41
8.0.100.0120.00417.41
8.0.90.0090.00517.58
8.0.80.0110.00417.58
8.0.70.0080.00617.59
8.0.60.0090.00517.59
8.0.50.0070.00817.41
8.0.30.0090.00617.41
8.0.20.0100.00517.59
8.0.10.0060.00817.41

preferences:
48.12 ms | 403 KiB | 5 Q