3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array('J.S.S 1','J.S.S 2','J.S.S 3','S.S 1','S.S 2','S.S 3','Primary One','Primary Two','Primary Three','Primary Four','Primary Five','Primary Six'); $b1 = ['S.S 2','S.S 3']; $found = false; foreach($b1 as $b) { if(in_array($b, $a1)) { $found = true; break; } } var_dump($found);

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.130.0130.00717.56
8.4.120.0070.00220.29
8.4.110.0030.00718.84
8.4.100.0120.01017.70
8.4.90.0100.01020.54
8.4.80.0050.00518.98
8.4.70.0130.00618.95
8.4.60.0090.01120.57
8.4.50.0100.01120.25
8.4.40.0160.00322.19
8.4.30.0060.01022.12
8.4.20.0070.01418.68
8.4.10.0030.00619.49
8.3.260.0110.01016.43
8.3.250.0080.00618.93
8.3.240.0030.00417.05
8.3.230.0130.00616.62
8.3.220.0120.00618.81
8.3.210.0060.01016.62
8.3.200.0120.00716.48
8.3.190.0130.00619.11
8.3.180.0040.00418.81
8.3.170.0040.00416.99
8.3.160.0040.00416.43
8.3.150.0090.00916.37
8.3.140.0060.00316.61
8.3.130.0040.00418.45
8.3.120.0050.00220.56
8.3.110.0060.00918.42
8.3.100.0150.00016.62
8.3.90.0080.01226.77
8.3.80.0030.00618.30
8.3.70.0070.01416.58
8.3.60.0120.00616.49
8.3.50.0120.00917.44
8.3.40.0060.01318.27
8.3.30.0120.00318.67
8.3.20.0050.00320.49
8.3.10.0060.00320.42
8.3.00.0080.00020.89
8.2.290.0090.01016.99
8.2.280.0040.00320.07
8.2.270.0040.00416.88
8.2.260.0040.00417.10
8.2.250.0040.00418.73
8.2.240.0080.00017.06
8.2.230.0060.00320.94
8.2.220.0050.00224.06
8.2.210.0080.00026.77
8.2.200.0080.00016.50
8.2.190.0150.00018.29
8.2.180.0070.01025.92
8.2.170.0090.01222.96
8.2.160.0140.00019.08
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.89
8.2.110.0040.00721.09
8.2.100.0080.00419.63
8.2.90.0050.00317.91
8.2.80.0000.00817.97
8.2.70.0040.00418.05
8.2.60.0040.00418.09
8.2.50.0030.00519.35
8.2.40.0000.00719.11
8.2.30.0040.00419.15
8.2.20.0040.00418.00
8.2.10.0050.00319.38
8.2.00.0040.00418.13
8.1.330.0140.00616.41
8.1.320.0090.01116.11
8.1.310.0070.01016.88
8.1.300.0090.00017.69
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0040.00421.98
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.74
8.1.230.0080.00422.70
8.1.220.0000.00817.74
8.1.210.0060.00618.77
8.1.200.0090.00017.23
8.1.190.0040.00417.36
8.1.180.0000.00718.10
8.1.170.0030.00618.55
8.1.160.0040.00418.95
8.1.150.0080.00018.89
8.1.140.0040.00420.23
8.1.130.0030.00320.19
8.1.120.0000.00717.38
8.1.110.0040.00417.45
8.1.100.0040.00417.50
8.1.90.0040.00417.50
8.1.80.0000.00717.49
8.1.70.0040.00417.36
8.1.60.0000.00717.52
8.1.50.0040.00417.41
8.1.40.0040.00417.51
8.1.30.0060.00617.61
8.1.20.0040.00817.55
8.1.10.0000.00717.52
8.1.00.0040.00417.39
8.0.300.0040.00419.66
8.0.290.0050.00316.75
8.0.280.0000.00818.35
8.0.270.0030.00316.69
8.0.260.0030.00318.51
8.0.250.0000.00717.00
8.0.240.0070.00016.98
8.0.230.0000.00716.99
8.0.220.0030.00316.79
8.0.210.0000.00816.81
8.0.200.0040.00416.96
8.0.190.0000.00717.00
8.0.180.0030.00516.93
8.0.170.0060.00316.89
8.0.160.0040.00416.89
8.0.150.0000.00716.83
8.0.140.0070.00016.75
8.0.130.0000.00513.32
8.0.120.0000.00716.76
8.0.110.0000.00716.79
8.0.100.0040.00416.91
8.0.90.0000.00716.77
8.0.80.0110.00516.83
8.0.70.0030.00516.96
8.0.60.0000.00716.77
8.0.50.0040.00416.90
8.0.30.0110.00617.00
8.0.20.0130.01317.40
8.0.10.0040.00416.84
8.0.00.0110.01116.84
7.4.330.0000.00415.55
7.4.320.0050.00216.43
7.4.300.0030.00316.51
7.4.290.0000.00616.41
7.4.280.0040.00416.52
7.4.270.0070.00316.46
7.4.260.0070.00016.54
7.4.250.0040.00416.58
7.4.240.0000.00716.52
7.4.230.0030.00316.32
7.4.220.0000.00716.41
7.4.210.0110.00416.58
7.4.200.0030.00316.44
7.4.160.0100.00816.48
7.4.140.0050.01317.86
7.4.130.0260.02516.45
7.4.120.0150.01116.67
7.4.110.0120.01216.48
7.4.100.0120.00616.64
7.4.90.0130.00516.41
7.4.80.0040.01319.39
7.4.70.0060.01016.64
7.4.60.0130.00916.66
7.4.50.0030.01316.66
7.4.40.0160.00616.56
7.4.10.0070.01414.93
7.4.00.0050.01314.88
7.3.330.0000.00513.10
7.3.320.0030.00313.02
7.3.310.0070.00016.09
7.3.300.0060.00016.13
7.3.290.0070.00016.28
7.3.280.0080.00716.29
7.3.260.0090.01016.48
7.3.230.0000.01716.31
7.3.210.0090.00916.23
7.3.200.0040.01316.16
7.3.190.0110.00616.26
7.3.180.0060.01216.23
7.3.170.0110.01116.55
7.3.160.0070.01016.41
7.3.130.0090.00914.87
7.3.120.0060.01214.76
7.3.110.0100.00714.86
7.3.100.0070.00714.77
7.3.90.0040.01114.80
7.3.80.0060.00714.67
7.3.70.0050.00814.85
7.3.60.0060.01014.76
7.3.50.0080.00514.65
7.3.40.0060.00614.73
7.3.30.0050.00714.72
7.3.20.0520.00915.95
7.3.10.0300.00616.21
7.3.00.0310.00616.28
7.2.330.0100.00716.30
7.2.320.0080.00816.58
7.2.310.0090.00916.64
7.2.300.0000.01616.38
7.2.290.0150.00916.64
7.2.260.0060.01314.95
7.2.250.0080.01014.99
7.2.240.0050.01315.03
7.2.230.0080.00915.02
7.2.220.0060.00814.97
7.2.210.0060.01114.90
7.2.200.0030.00715.04
7.2.190.0070.00614.96
7.2.180.0060.00914.88
7.2.170.0050.00814.94
7.2.160.0040.00714.96
7.2.150.0700.00915.89
7.2.140.0740.00515.85
7.2.130.0760.00515.95
7.2.120.1070.00215.88
7.2.110.0690.00815.67
7.2.100.0930.00315.67
7.2.90.0740.00815.96
7.2.80.0780.00815.90
7.2.70.0910.00515.74
7.2.60.1140.00715.92
7.2.50.0810.00815.78
7.2.40.0850.00615.91
7.2.30.1220.00715.77
7.2.20.0860.00415.93
7.2.10.1090.00815.79
7.2.00.0950.00315.88
7.1.330.0040.01015.83
7.1.320.0050.00815.70
7.1.310.0050.01015.76
7.1.300.0040.00815.77
7.1.290.0070.00415.67
7.1.280.0060.00615.77
7.1.270.0040.00715.69
7.1.260.0080.00715.82
7.1.250.0750.00814.87
7.1.240.0080.00315.59
7.1.230.0060.00615.88
7.1.220.0030.01415.63
7.1.210.0080.00315.52
7.1.200.0040.00715.39
7.1.190.0040.00915.67
7.1.180.0110.00715.77
7.1.170.0060.01215.71
7.1.160.0060.00615.66
7.1.150.0080.00315.52
7.1.140.0060.00615.70
7.1.130.0100.00315.88
7.1.120.0110.00415.74
7.1.110.0080.00615.61
7.1.100.0070.00715.94
7.1.90.0060.01215.80
7.1.80.0000.00915.65
7.1.70.0040.00715.82
7.1.60.0070.00415.91
7.1.50.0090.00315.89
7.1.40.0000.00915.72
7.1.30.0060.00315.63
7.1.20.0030.00915.59
7.1.10.0040.00415.84
7.1.00.0070.00715.89

preferences:
29.88 ms | 403 KiB | 5 Q