3v4l.org

run code in 300+ PHP versions simultaneously
<?php $changes = ['x', 'y']; $exclusions = ['a', 'b', 'c']; $result = (bool) count(array_intersect($changes, $exclusions)); var_dump($result);

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.0110.01118.16
8.3.50.0120.00917.99
8.3.40.0110.01118.66
8.3.30.0090.00618.55
8.3.20.0040.00419.27
8.3.10.0040.00421.77
8.3.00.0040.00420.64
8.2.180.0090.00617.91
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0050.00219.52
8.2.120.0030.01026.35
8.2.110.0060.00319.30
8.2.100.0150.00017.84
8.2.90.0090.00017.63
8.2.80.0080.00017.97
8.2.70.0050.00317.92
8.2.60.0000.01018.09
8.2.50.0050.00318.10
8.2.40.0000.00719.48
8.2.30.0070.00019.16
8.2.20.0040.00418.11
8.2.10.0080.00018.11
8.2.00.0030.00617.80
8.1.280.0100.00725.92
8.1.270.0060.00320.58
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00321.93
8.1.230.0040.00722.13
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0040.00418.53
8.1.160.0070.00018.92
8.1.150.0040.00418.81
8.1.140.0000.00722.19
8.1.130.0040.00421.82
8.1.120.0040.00417.41
8.1.110.0040.00417.33
8.1.100.0050.00317.51
8.1.90.0060.00317.32
8.1.80.0000.00717.41
8.1.70.0070.00017.45
8.1.60.0060.00317.49
8.1.50.0040.00417.51
8.1.40.0000.00817.39
8.1.30.0030.00917.64
8.1.20.0000.00717.66
8.1.10.0000.00717.46
8.1.00.0030.00517.41
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0070.00018.41
8.0.270.0000.00717.15
8.0.260.0040.00418.43
8.0.250.0030.00616.98
8.0.240.0050.00216.94
8.0.230.0060.00016.83
8.0.220.0030.00316.86
8.0.210.0030.00516.91
8.0.200.0030.00316.95
8.0.190.0040.00416.83
8.0.180.0060.00316.78
8.0.170.0040.00416.90
8.0.160.0070.00016.83
8.0.150.0040.00416.88
8.0.140.0080.00016.76
8.0.130.0000.00513.23
8.0.120.0090.00016.89
8.0.110.0040.00416.76
8.0.100.0070.00016.82
8.0.90.0000.00816.93
8.0.80.0110.00516.79
8.0.70.0000.00716.90
8.0.60.0040.00416.99
8.0.50.0000.00716.69
8.0.30.0090.00817.11
8.0.20.0140.00517.40
8.0.10.0030.00316.99
8.0.00.0150.00816.77
7.4.330.0060.00015.55
7.4.320.0030.00316.50
7.4.300.0060.00016.57
7.4.290.0000.00716.63
7.4.280.0000.00916.41
7.4.270.0040.00416.49
7.4.260.0030.00316.43
7.4.250.0040.00416.46
7.4.240.0040.00416.44
7.4.230.0080.00016.64
7.4.220.0030.00616.42
7.4.210.0060.00816.46
7.4.200.0070.00016.57
7.4.160.0080.01016.50
7.4.140.0130.01017.86
7.4.130.0150.00916.55
7.4.120.0100.00816.55
7.4.110.0090.01316.50
7.4.100.0110.01516.46
7.4.90.0120.00616.32
7.4.80.0090.01219.39
7.4.70.0090.00616.42
7.4.60.0060.00916.40
7.4.50.0070.00716.57
7.4.40.0050.01416.31
7.4.00.0000.01314.89
7.3.330.0000.00513.02
7.3.320.0030.00313.03
7.3.310.0000.00816.22
7.3.300.0030.00316.17
7.3.290.0080.00016.25
7.3.280.0080.00716.20
7.3.260.0110.00916.21
7.3.240.0060.01016.32
7.3.230.0100.00716.45
7.3.210.0070.01016.49
7.3.200.0160.00016.36
7.3.190.0100.01016.48
7.3.180.0180.00316.23
7.3.170.0090.00916.21
7.3.160.0100.01416.19
7.2.330.0140.00416.64
7.2.320.0080.01316.32
7.2.310.0080.01316.44
7.2.300.0000.01616.42
7.2.290.0030.01616.54
7.2.110.0220.00914.79
7.2.100.0140.00914.43
7.2.90.0270.00614.91
7.2.80.0160.00814.89
7.2.70.1160.01015.01
7.2.60.0190.00614.87
7.2.50.0160.01014.97
7.2.40.0240.00614.91
7.2.30.0160.00614.84
7.2.20.0330.00315.00
7.2.10.0230.00915.06
7.2.00.0230.01014.94
7.1.230.0150.00913.71
7.1.220.0140.01013.99
7.1.210.0150.01213.88
7.1.200.0240.00313.82
7.1.190.0150.00813.94
7.1.180.0190.00613.94
7.1.170.0150.00613.82
7.1.160.0190.00613.46
7.1.150.0170.00713.52
7.1.140.0300.00913.73
7.1.130.0180.00913.64
7.1.120.0250.00613.94
7.1.110.0230.01013.90
7.1.100.0250.00613.91
7.1.90.0240.01013.46
7.1.80.0190.00613.66
7.1.70.0170.00713.47
7.1.60.0380.00731.54
7.1.50.0530.01231.62
7.1.40.0460.00431.37
7.1.30.0290.01331.71
7.1.20.0340.01431.91
7.1.10.0170.00813.38
7.1.00.0150.00613.85
5.6.380.0030.00714.48

preferences:
58.37 ms | 401 KiB | 5 Q