3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = ['1', '2']; $y = ['2', '1']; $z = ['1', '2', '4']; $n = [1, 2]; echo sort($x) === sort($y) ? 'y1' : 'n1'; echo sort($x) === sort($z) ? 'y2' : 'n2'; echo sort($x) === sort($n) ? 'y3' : 'n3';

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.0130.00718.60
8.3.30.0090.00618.66
8.3.20.0000.00918.61
8.3.10.0030.00521.67
8.3.00.0000.00720.71
8.2.170.0070.01122.96
8.2.160.0070.00721.07
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00419.72
8.2.120.0050.00326.35
8.2.110.0060.00321.11
8.2.100.0120.00017.91
8.2.90.0050.00219.07
8.2.80.0040.00417.97
8.2.70.0040.00418.04
8.2.60.0080.00018.22
8.2.50.0030.00518.10
8.2.40.0040.00419.32
8.2.30.0100.00019.25
8.2.20.0000.00818.08
8.2.10.0000.00717.89
8.2.00.0050.00317.67
8.1.270.0030.00518.79
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00322.46
8.1.230.0110.00020.97
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0000.00917.00
8.1.190.0030.00717.22
8.1.180.0070.00018.10
8.1.170.0000.00818.66
8.1.160.0000.00718.75
8.1.150.0070.00018.80
8.1.140.0030.00322.19
8.1.130.0000.00720.14
8.1.120.0040.00417.43
8.1.110.0000.01017.42
8.1.100.0030.00617.45
8.1.90.0030.00517.31
8.1.80.0030.00717.41
8.1.70.0080.00017.43
8.1.60.0040.00417.54
8.1.50.0040.00417.44
8.1.40.0000.00917.44
8.1.30.0040.00417.64
8.1.20.0040.00417.62
8.1.10.0000.00817.50
8.1.00.0000.00817.31
8.0.300.0070.00319.91
8.0.290.0050.00216.75
8.0.280.0070.00318.33
8.0.270.0000.00717.26
8.0.260.0060.00018.38
8.0.250.0030.00316.89
8.0.240.0030.00316.93
8.0.230.0030.00316.89
8.0.220.0030.00716.88
8.0.210.0030.00316.71
8.0.200.0030.00316.91
8.0.190.0040.00416.91
8.0.180.0040.00416.85
8.0.170.0000.00916.88
8.0.160.0000.00816.76
8.0.150.0040.00416.87
8.0.140.0040.00416.70
8.0.130.0050.00013.31
8.0.120.0030.00616.70
8.0.110.0070.00016.82
8.0.100.0040.00416.77
8.0.90.0000.00816.81
8.0.80.0050.01216.90
8.0.70.0070.00016.69
8.0.60.0000.00816.84
8.0.50.0040.00416.64
8.0.30.0110.00617.02
8.0.20.0080.01417.40
8.0.10.0000.00816.86
8.0.00.0120.00816.56
7.4.330.0050.00015.55
7.4.320.0060.00016.54
7.4.300.0000.00616.52
7.4.290.0030.00316.63
7.4.280.0050.00316.52
7.4.270.0000.00716.62
7.4.260.0000.00716.59
7.4.250.0070.00016.43
7.4.240.0000.00716.50
7.4.230.0070.00016.62
7.4.220.0030.00516.36
7.4.210.0090.00616.69
7.4.200.0060.00316.64
7.4.160.0080.00816.48
7.4.140.0130.01017.86
7.4.130.0070.01416.45
7.4.120.0130.00516.55
7.4.110.0070.01016.63
7.4.100.0070.01016.59
7.4.90.0130.01016.40
7.4.80.0030.01419.39
7.4.70.0130.01016.48
7.4.60.0110.00816.30
7.4.50.0130.00316.53
7.4.40.0110.00616.45
7.3.330.0050.00013.15
7.3.320.0060.00013.15
7.3.310.0030.00316.26
7.3.300.0070.00016.12
7.3.290.0030.00316.17
7.3.280.0070.00716.13
7.3.260.0110.00716.41
7.3.240.0130.00616.38
7.3.230.0100.00616.18
7.3.210.0030.01516.46
7.3.200.0090.00916.27
7.3.190.0120.00616.44
7.3.180.0060.00916.29
7.3.170.0080.01216.32
7.3.160.0170.00016.43
7.2.330.0120.00616.45
7.2.320.0070.01016.48
7.2.310.0030.01316.32
7.2.300.0130.00316.20
7.2.290.0070.01016.36

preferences:
56.88 ms | 400 KiB | 5 Q