3v4l.org

run code in 300+ PHP versions simultaneously
<?php $found = null; $people = array(3,20,2); $criminals = array( 2, 4, 8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20); foreach($people as $num) { if (in_array($num,$criminals)) { $found[$num] = true; } } 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.20.0040.01617.39
8.4.10.0070.01017.74
8.3.150.0080.00617.42
8.3.140.0180.00416.45
8.3.130.0060.00318.34
8.3.120.0090.00020.65
8.3.110.0080.01216.62
8.3.100.0130.00716.60
8.3.90.0100.01026.77
8.3.80.0030.00618.43
8.3.70.0130.00618.43
8.3.60.0090.00618.18
8.3.50.0100.00921.88
8.3.40.0070.00718.75
8.3.30.0140.00019.09
8.3.20.0080.00020.34
8.3.10.0040.00423.66
8.3.00.0090.00019.25
8.2.260.0060.00318.85
8.2.250.0040.00418.90
8.2.240.0060.01517.20
8.2.230.0060.00320.94
8.2.220.0080.00024.06
8.2.210.0040.01126.77
8.2.200.0090.00016.75
8.2.190.0180.00016.58
8.2.180.0100.01316.50
8.2.170.0000.01422.96
8.2.160.0100.00722.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.77
8.2.110.0040.00422.18
8.2.100.0060.00617.91
8.2.90.0040.00417.75
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0080.00018.30
8.2.50.0060.00318.07
8.2.40.0000.00718.28
8.2.30.0070.00018.04
8.2.20.0040.00417.74
8.2.10.0070.00018.09
8.2.00.0000.00817.73
8.1.310.0000.00816.49
8.1.300.0000.00820.31
8.1.290.0040.00818.88
8.1.280.0070.01025.92
8.1.270.0080.00020.50
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00023.96
8.1.230.0090.00320.93
8.1.220.0070.00017.74
8.1.210.0090.00020.20
8.1.200.0000.00817.35
8.1.190.0080.00017.23
8.1.180.0070.00318.10
8.1.170.0080.00018.65
8.1.160.0040.00422.03
8.1.150.0050.00318.77
8.1.140.0000.00817.56
8.1.130.0030.00317.70
8.1.120.0040.00417.46
8.1.110.0000.00817.39
8.1.100.0070.00017.37
8.1.90.0000.00717.51
8.1.80.0040.00417.40
8.1.70.0030.00317.39
8.1.60.0060.00317.52
8.1.50.0040.00417.43
8.1.40.0070.00017.41
8.1.30.0000.00817.48
8.1.20.0000.00817.61
8.1.10.0040.00417.48
8.1.00.0000.00717.46
8.0.300.0040.00419.65
8.0.290.0030.00616.75
8.0.280.0000.00718.50
8.0.270.0000.00717.31
8.0.260.0070.00017.26
8.0.250.0000.00716.86
8.0.240.0000.00716.99
8.0.230.0000.00716.99
8.0.220.0000.00616.95
8.0.210.0000.00716.86
8.0.200.0000.00616.93
8.0.190.0000.00716.98
8.0.180.0110.00016.95
8.0.170.0000.00716.92
8.0.160.0050.00316.92
8.0.150.0030.00516.89
8.0.140.0030.00516.76
8.0.130.0030.00313.32
8.0.120.0050.00316.82
8.0.110.0000.00716.85
8.0.100.0050.00216.73
8.0.90.0040.00416.78
8.0.80.0110.01116.77
8.0.70.0030.00516.87
8.0.60.0020.00516.86
8.0.50.0080.00016.72
8.0.30.0120.00517.09
8.0.20.0090.00917.25
8.0.10.0150.00017.07
8.0.00.0070.01016.78
7.4.330.0000.00515.14
7.4.320.0030.00316.56
7.4.300.0000.00616.61
7.4.290.0000.00716.43
7.4.280.0070.00016.51
7.4.270.0040.00416.50
7.4.260.0070.00016.39
7.4.250.0040.00416.34
7.4.240.0020.00516.49
7.4.230.0070.00016.69
7.4.220.0130.00616.46
7.4.210.0070.01316.57
7.4.200.0000.00716.55
7.4.160.0080.01016.62
7.4.150.0100.00616.97
7.4.140.0080.00817.37
7.4.130.0090.00816.40
7.4.120.0060.01216.49
7.4.110.0070.01216.53
7.4.100.0090.00616.54
7.4.90.0110.00416.48
7.4.80.0140.00917.44
7.4.70.0130.01016.44
7.4.60.0120.01016.47
7.4.50.0070.00716.33
7.4.40.0100.00716.27
7.4.30.0110.01016.30
7.4.20.0070.01216.38
7.4.10.0050.01916.31
7.4.00.0060.01015.54
7.3.330.0050.00013.09
7.3.320.0000.00613.24
7.3.310.0000.00616.33
7.3.300.0000.00716.19
7.3.290.0030.00316.32
7.3.280.0080.01016.39
7.3.270.0100.00616.87
7.3.260.0080.00716.48
7.3.250.0030.01316.46
7.3.240.0080.00716.27
7.3.230.0110.00516.43
7.3.220.0030.01016.21
7.3.210.0050.01216.37
7.3.200.0090.00817.37
7.3.190.0130.00816.36
7.3.180.0100.01016.40
7.3.170.0070.01116.30
7.3.160.0090.00816.22
7.3.150.0150.00416.28
7.3.140.0080.01016.24
7.3.130.0120.01016.25
7.3.120.0070.01115.51
7.3.110.0060.01115.61
7.3.100.0080.01115.54
7.3.90.0060.01115.63
7.3.80.0060.01115.55
7.3.70.0070.00715.51
7.3.60.0090.00515.42
7.3.50.0070.01015.61
7.3.40.0060.00915.59
7.3.30.0070.01015.60
7.3.20.0210.00916.41
7.3.10.0080.01016.47
7.3.00.0080.00916.40
7.2.340.0180.00716.36
7.2.330.0180.00516.59
7.2.320.0180.01216.38
7.2.310.0150.00916.40
7.2.300.0110.01216.31
7.2.290.0170.00616.42
7.2.280.0120.01116.24
7.2.270.0140.01016.31
7.2.260.0150.00916.35
7.2.250.0110.00915.63
7.2.240.0160.01115.60
7.2.230.0140.01015.74
7.2.220.0140.00615.76
7.2.210.0090.01215.71
7.2.200.0120.00615.66
7.2.190.0090.00915.62
7.2.180.0120.00815.65
7.2.170.0100.00815.70
7.2.160.0120.00816.04
7.2.150.0120.01016.60
7.2.140.0130.00916.61
7.2.130.0090.01416.70
7.2.120.0100.01416.69
7.2.110.0190.00716.61
7.2.100.0210.00616.71
7.2.90.0180.01016.58
7.2.80.0160.00816.56
7.2.70.0190.00816.67
7.2.60.0120.01116.71
7.2.50.0100.01316.59
7.2.40.0150.00816.65
7.2.30.0230.01016.72
7.2.20.0160.00916.65
7.2.10.0150.01216.73
7.2.00.0170.00916.71
7.1.330.0160.00915.75
7.1.320.0140.00615.73
7.1.310.0110.01015.76
7.1.300.0090.01215.81
7.1.290.0110.00915.59
7.1.280.0250.00715.73
7.1.270.0110.00815.71
7.1.260.0130.00915.65
7.1.250.0180.00615.53
7.1.240.0120.00915.67
7.1.230.0190.00915.64
7.1.220.0210.00915.69
7.1.210.0110.01215.61
7.1.200.0120.00815.67
7.1.190.0190.00815.63
7.1.180.0150.00915.56
7.1.170.0160.00615.66
7.1.160.0170.00815.45
7.1.150.0440.01015.55
7.1.140.0110.01215.71
7.1.130.0180.00515.57
7.1.120.0200.00315.65
7.1.110.0190.00815.53
7.1.100.0140.00516.28
7.1.90.0150.00515.78
7.1.80.0160.00815.63
7.1.70.0130.00515.89
7.1.60.0150.00716.51
7.1.50.0120.00716.00
7.1.40.0230.00415.74
7.1.30.0130.01115.65
7.1.20.0160.00715.59
7.1.10.0130.01215.55
7.1.00.0140.02217.31
7.0.330.0120.01015.33
7.0.320.0120.01015.19
7.0.310.0130.00915.29
7.0.300.0130.00815.19
7.0.290.0140.01015.21
7.0.280.0150.00715.30
7.0.270.0120.01115.29
7.0.260.0150.00915.23
7.0.250.0160.00515.42
7.0.240.0140.00715.39
7.0.230.0130.00815.32
7.0.220.0120.01115.38
7.0.210.0140.00815.33
7.0.200.0110.00615.65
7.0.190.0120.00915.44
7.0.180.0200.00815.39
7.0.170.0120.00815.34
7.0.160.0170.00815.31
7.0.150.0140.00815.33
7.0.140.0100.02517.00
7.0.130.0140.00915.28
7.0.120.0140.00915.32
7.0.110.0170.00415.36
7.0.100.0100.01015.31
7.0.90.0120.01015.22
7.0.80.0150.00515.30
7.0.70.0130.01516.82
7.0.60.0130.01216.84
7.0.50.0080.01517.05
7.0.40.0160.01116.00
7.0.30.0100.01316.00
7.0.20.0100.01615.90
7.0.10.0200.01616.01
7.0.00.0120.02015.96
5.6.400.0150.00915.52
5.6.390.0160.01015.09
5.6.380.0130.01015.47
5.6.370.0140.00815.55
5.6.360.0110.01215.49
5.6.350.0120.01315.11
5.6.340.0180.01015.27
5.6.330.0210.00515.41
5.6.320.0110.01115.50
5.6.310.0100.01215.40
5.6.300.0120.00815.41
5.6.290.0110.01115.37
5.6.280.0100.02816.66
5.6.270.0140.00915.42
5.6.260.0110.01215.32
5.6.250.0150.00915.42
5.6.240.0130.00815.43
5.6.230.0130.00915.40
5.6.220.0150.01316.68
5.6.210.0100.02116.75
5.6.200.0110.01616.86
5.6.190.0070.01816.91
5.6.180.0130.01516.85
5.6.170.0110.01716.85
5.6.160.0090.02916.92
5.6.150.0080.02216.91
5.6.140.0100.01616.83
5.6.130.0150.01316.85
5.6.120.0100.01716.86
5.6.110.0110.01716.80
5.6.100.0080.02116.73
5.6.90.0120.01616.85
5.6.80.0120.01716.49
5.6.70.0100.01616.62
5.6.60.0100.01616.74
5.6.50.0110.01616.51
5.6.40.0120.01316.60
5.6.30.0060.02016.63
5.6.20.0110.01616.56
5.6.10.0110.01616.60
5.6.00.0140.01416.58
5.5.380.0170.00515.52
5.5.370.0110.01115.42
5.5.360.0140.01216.65
5.5.350.0080.02016.54
5.5.340.0110.01616.70
5.5.330.0100.01416.79
5.5.320.0110.02616.79
5.5.310.0100.02116.66
5.5.300.0110.01816.65
5.5.290.0140.02116.67
5.5.280.0120.01916.74
5.5.270.0110.01716.64
5.5.260.0110.03216.72
5.5.250.0150.01716.62
5.5.240.0110.02216.54
5.5.230.0080.01816.58
5.5.220.0110.01416.56
5.5.210.0090.01716.52
5.5.200.0100.01716.58
5.5.190.0110.01516.50
5.5.180.0090.02016.54
5.5.170.0130.00715.36
5.5.160.0100.01916.51
5.5.150.0090.01616.59
5.5.140.0120.01716.51
5.5.130.0090.01516.47
5.5.120.0130.01216.47
5.5.110.0070.03016.42
5.5.100.0110.02516.51
5.5.90.0090.02616.57
5.5.80.0100.02116.50
5.5.70.0120.02116.55
5.5.60.0090.02316.50
5.5.50.0120.02616.54
5.5.40.0140.02416.53
5.5.30.0090.02616.48
5.5.20.0130.02416.44
5.5.10.0100.02716.59
5.5.00.0140.02416.46
5.4.450.0130.01713.90
5.4.440.0100.01413.89
5.4.430.0080.01413.97
5.4.420.0080.01413.91
5.4.410.0110.01113.95
5.4.400.0090.01313.82
5.4.390.0090.01313.81
5.4.380.0090.01213.83
5.4.370.0090.01513.76
5.4.360.0090.01713.84
5.4.350.0080.01413.73
5.4.340.0090.01313.88
5.4.330.0060.00812.08
5.4.320.0090.01213.82
5.4.310.0080.02513.67
5.4.300.0070.01413.77
5.4.290.0090.01313.85
5.4.280.0090.01313.80
5.4.270.0060.02713.84
5.4.260.0090.02513.71
5.4.250.0090.02513.86
5.4.240.0090.02213.75
5.4.230.0100.01313.69
5.4.220.0120.02113.81
5.4.210.0100.01613.74
5.4.200.0080.02613.80
5.4.190.0090.01713.79
5.4.180.0100.02313.83
5.4.170.0090.02113.71
5.4.160.0100.02213.75
5.4.150.0100.02313.83
5.4.140.0070.02513.18
5.4.130.0060.02113.21
5.4.120.0080.02213.13
5.4.110.0100.02113.24
5.4.100.0090.02713.15
5.4.90.0110.02113.18
5.4.80.0120.02113.25
5.4.70.0090.02513.07
5.4.60.0080.02413.20
5.4.50.0100.02313.16
5.4.40.0100.02013.08
5.4.30.0070.02213.17
5.4.20.0100.02313.26
5.4.10.0090.01413.08
5.4.00.0100.02312.94

preferences:
80.94 ms | 403 KiB | 5 Q