3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array(2,3,1,4); $arr2 = array(2,5,3,4); $arr3 = array(1,3,4,2,5,6,3); $range1 = range(1,max($arr1)); $range2 = range(1,max($arr2)); $range3 = range(1,max($arr3)); Var_dump(count($range1) == count(array_intersect($arr1, $range1))); Var_dump(count($range2) == count(array_intersect($arr2, $range2))); Var_dump(count($range3) == count(array_intersect($arr3, $range3)));

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.00.0140.00619.94
8.4.150.0020.00114.05
8.4.140.0140.00917.46
8.4.130.0120.01017.52
8.4.120.0120.00720.81
8.4.110.0100.00918.88
8.4.100.0130.00717.59
8.4.90.0120.00817.42
8.4.80.0120.00517.58
8.4.70.0080.01017.46
8.4.60.0100.01023.78
8.4.50.0050.00420.26
8.4.40.0030.01619.47
8.4.30.0170.00319.33
8.4.20.0170.00320.23
8.4.10.0040.00417.74
8.3.280.0110.00918.24
8.3.270.0130.00616.45
8.3.260.0090.00416.27
8.3.250.0100.00918.76
8.3.240.0120.00716.44
8.3.230.0050.00416.40
8.3.220.0120.00718.45
8.3.210.0130.00516.80
8.3.200.0040.00516.68
8.3.190.0140.00417.04
8.3.180.0040.00316.50
8.3.170.0030.01616.98
8.3.160.0120.00618.11
8.3.150.0110.00716.37
8.3.140.0080.00017.10
8.3.130.0060.01318.56
8.3.120.0120.00320.68
8.3.110.0000.01920.94
8.3.100.0140.00624.06
8.3.90.0090.00926.77
8.3.80.0090.00018.31
8.3.70.0100.00718.18
8.3.60.0090.00618.46
8.3.50.0080.00517.90
8.3.40.0060.01618.42
8.3.30.0040.01118.50
8.3.20.0000.00721.72
8.3.10.0040.00423.71
8.3.00.0050.00321.77
8.2.290.0090.00920.45
8.2.280.0100.00918.49
8.2.270.0090.00917.18
8.2.260.0160.00318.30
8.2.250.0080.00018.35
8.2.240.0070.00717.16
8.2.230.0030.00622.58
8.2.220.0030.00537.54
8.2.210.0070.01126.77
8.2.200.0000.01118.88
8.2.190.0120.00616.63
8.2.180.0150.00016.63
8.2.170.0060.00918.89
8.2.160.0100.00322.96
8.2.150.0080.00024.18
8.2.140.0020.00524.66
8.2.130.0050.00326.16
8.2.120.0050.00220.72
8.2.110.0060.00322.12
8.2.100.0060.00617.72
8.2.90.0030.00517.75
8.2.80.0050.00318.65
8.2.70.0080.00017.50
8.2.60.0000.00917.50
8.2.50.0030.00717.55
8.2.40.0000.00817.93
8.2.30.0040.00419.13
8.2.20.0000.01117.96
8.2.10.0050.00320.53
8.2.00.0040.00419.38
8.1.330.0080.00616.88
8.1.320.0060.00416.15
8.1.310.0140.00418.59
8.1.300.0040.00418.24
8.1.290.0100.00030.84
8.1.280.0130.00725.92
8.1.270.0030.00618.75
8.1.260.0190.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00320.64
8.1.230.0100.00019.10
8.1.220.0000.00817.76
8.1.210.0040.00418.77
8.1.200.0050.00317.23
8.1.190.0090.00317.35
8.1.180.0050.00318.10
8.1.170.0080.00017.82
8.1.160.0000.00818.99
8.1.150.0030.00518.89
8.1.140.0000.00723.93
8.1.130.0000.00718.79
8.1.120.0030.00417.45
8.1.110.0030.00617.34
8.1.100.0070.00017.33
8.1.90.0060.00317.52
8.1.80.0000.00817.45
8.1.70.0000.00717.45
8.1.60.0040.00417.56
8.1.50.0040.00717.54
8.1.40.0040.00417.49
8.1.30.0040.00417.57
8.1.20.0040.00417.63
8.1.10.0040.00417.44
8.1.00.0040.00417.35
8.0.300.0050.00219.65
8.0.290.0080.00016.63
8.0.280.0000.00818.36
8.0.270.0030.00316.81
8.0.260.0000.00618.31
8.0.250.0030.00316.85
8.0.240.0000.00816.80
8.0.230.0000.00716.78
8.0.220.0060.00316.84
8.0.210.0000.00716.73
8.0.200.0070.00016.79
8.0.190.0000.00717.00
8.0.180.0040.00416.80
8.0.170.0030.00616.81
8.0.160.0070.00016.92
8.0.150.0000.00716.82
8.0.140.0030.00316.75
8.0.130.0050.00013.33
8.0.120.0060.00316.83
8.0.110.0000.00916.95
8.0.100.0000.00716.73
8.0.90.0030.00316.88
8.0.80.0080.00816.86
8.0.70.0030.00616.85
8.0.60.0040.00416.70
8.0.50.0040.00416.89
8.0.30.0100.01016.98
8.0.20.0090.00917.40
8.0.10.0040.00416.91
8.0.00.0080.00916.92
7.4.330.0030.00316.83
7.4.320.0050.00316.52
7.4.300.0000.00616.34
7.4.290.0040.00416.50
7.4.280.0080.00016.42
7.4.270.0040.00416.63
7.4.260.0030.00616.50
7.4.250.0030.00316.56
7.4.240.0070.00016.40
7.4.230.0050.00316.34
7.4.220.0080.00016.61
7.4.210.0100.00716.45
7.4.200.0040.00416.38
7.4.160.0100.00716.47
7.4.140.0100.00917.86
7.4.130.0040.01416.58
7.4.120.0070.01116.42
7.4.110.0120.00616.34
7.4.100.0060.02116.36
7.4.90.0180.00316.44
7.4.80.0070.01019.39
7.4.70.0030.01616.58
7.4.60.0130.00316.42
7.4.50.0060.00916.38
7.4.40.0080.00816.46
7.4.00.0090.00614.71
7.3.330.0000.00513.20
7.3.320.0060.00013.09
7.3.310.0030.00316.34
7.3.300.0060.00316.09
7.3.290.0030.00316.29
7.3.280.0110.00516.20
7.3.260.0140.00416.40
7.3.240.0100.00916.28
7.3.230.0030.01416.30
7.3.210.0120.00616.56
7.3.200.0100.00616.57
7.3.190.0100.00716.57
7.3.180.0130.00316.16
7.3.170.0080.00816.42
7.3.160.0090.01216.27
7.3.10.0030.00716.58
7.3.00.0300.00415.43
7.2.330.0070.01016.50
7.2.320.0000.02116.48
7.2.310.0070.01016.61
7.2.300.0090.00916.66
7.2.290.0060.00916.54
7.2.130.0420.00615.78
7.2.120.0390.01015.87
7.2.110.0310.00615.55
7.2.100.0430.01415.78
7.2.90.0430.00315.71
7.2.80.0210.00615.65
7.2.70.0330.00515.94
7.2.60.0830.00515.89
7.2.50.0340.00815.87
7.2.40.0360.00715.78
7.2.30.0290.00715.84
7.2.20.0230.00715.94
7.2.10.0300.00816.02
7.2.00.0210.00915.87
7.1.250.0370.01214.67
7.0.330.0740.00613.64
5.6.380.0040.00814.04

preferences:
106.97 ms | 403 KiB | 5 Q