3v4l.org

run code in 300+ PHP versions simultaneously
<?php $set_of_numbers = "1,2,4,5,9"; $numbers = explode(",", $set_of_numbers); $range = range(1,12); $numbers_to_output = array_diff($range, $numbers); // [3,6,7,8,10,11,12] foreach($numbers_to_output as $n){ echo '<option value='.$n.'>'.$n."</option>\n"; }

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.130.0080.00016.77
8.3.120.0060.00320.67
8.3.110.0060.00920.94
8.3.100.0050.00324.06
8.3.90.0100.00026.77
8.3.80.0000.00917.97
8.3.70.0110.01118.30
8.3.60.0140.00316.23
8.3.50.0150.00317.96
8.3.40.0070.00718.71
8.3.30.0090.00618.71
8.3.20.0080.00021.73
8.3.10.0080.00020.36
8.3.00.0040.00417.50
8.2.250.0000.00718.50
8.2.240.0110.00718.84
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0120.00626.77
8.2.200.0060.00318.41
8.2.190.0110.00316.58
8.2.180.0120.00916.38
8.2.170.0080.00818.82
8.2.160.0110.00422.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00518.03
8.2.120.0040.00426.35
8.2.110.0080.00320.95
8.2.100.0090.00317.72
8.2.90.0000.00817.75
8.2.80.0050.00317.97
8.2.70.0040.00418.03
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0040.00419.30
8.2.30.0000.00819.23
8.2.20.0040.00418.10
8.2.10.0040.00419.31
8.2.00.0060.00318.21
8.1.300.0030.00616.21
8.1.290.0030.00630.84
8.1.280.0160.00325.92
8.1.270.0000.00820.22
8.1.260.0080.00026.35
8.1.250.0120.00028.09
8.1.240.0060.00322.62
8.1.230.0070.00419.55
8.1.220.0030.00617.77
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0040.00418.79
8.1.150.0040.00418.90
8.1.140.0060.00320.67
8.1.130.0040.00420.01
8.1.120.0040.00417.47
8.1.110.0060.00317.43
8.1.100.0040.00417.41
8.1.90.0040.00417.34
8.1.80.0050.00317.42
8.1.70.0000.00717.33
8.1.60.0080.00317.54
8.1.50.0000.00817.50
8.1.40.0030.00617.40
8.1.30.0030.00717.50
8.1.20.0000.00917.60
8.1.10.0060.00317.46
8.1.00.0070.00017.45
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.34
8.0.270.0000.00716.73
8.0.260.0040.00418.36
8.0.250.0000.00616.96
8.0.240.0000.00716.96
8.0.230.0070.00016.91
8.0.220.0000.00716.93
8.0.210.0030.00316.94
8.0.200.0000.00716.91
8.0.190.0000.00716.88
8.0.180.0050.00316.93
8.0.170.0030.00616.93
8.0.160.0000.00716.84
8.0.150.0000.00716.81
8.0.140.0000.00716.85
8.0.130.0000.00613.21
8.0.120.0040.00416.76
8.0.110.0040.00416.86
8.0.100.0070.00016.76
8.0.90.0050.00216.72
8.0.80.0150.00516.91
8.0.70.0040.00416.86
8.0.60.0070.00016.89
8.0.50.0020.00516.74
8.0.30.0160.00416.95
8.0.20.0120.00917.17
8.0.10.0040.00416.88
8.0.00.0100.00916.87
7.4.330.0000.00515.55
7.4.320.0000.00616.61
7.4.300.0060.00016.58
7.4.290.0030.00316.58
7.4.280.0050.00316.64
7.4.270.0000.00716.45
7.4.260.0000.00816.56
7.4.250.0030.00316.45
7.4.240.0080.00016.51
7.4.230.0070.00016.70
7.4.220.0000.00816.57
7.4.210.0080.00816.61
7.4.200.0070.00016.69
7.4.160.0060.01016.40
7.4.140.0110.00717.86
7.4.130.0130.01316.28
7.4.120.0120.00616.57
7.4.110.0160.00316.44
7.4.100.0070.01116.45
7.4.90.0100.00716.41
7.4.80.0030.01419.39
7.4.70.0080.00816.32
7.4.60.0100.00616.21
7.4.50.0100.00716.59
7.4.40.0120.00816.49
7.4.10.0100.00714.70
7.4.00.0060.01014.99
7.3.330.0000.00513.01
7.3.320.0070.00013.15
7.3.310.0000.00716.40
7.3.300.0030.00316.16
7.3.290.0000.00716.25
7.3.280.0070.00916.23
7.3.260.0130.00716.38
7.3.240.0100.00916.34
7.3.230.0090.00916.54
7.3.210.0100.00716.50
7.3.200.0140.00416.17
7.3.190.0100.00716.33
7.3.180.0120.00316.31
7.3.170.0060.01016.46
7.3.160.0100.00716.49
7.3.130.0030.01414.66
7.3.120.0080.00914.91
7.3.110.0070.01114.93
7.3.100.0080.00814.94
7.3.90.0020.01214.84
7.3.80.0050.00814.94
7.3.70.0040.00814.93
7.3.60.0050.01014.76
7.3.50.0080.00614.64
7.3.40.0070.01014.78
7.3.30.0050.00914.89
7.3.20.0090.00516.57
7.3.10.0280.00215.93
7.3.00.0220.00616.04
7.2.330.0140.00616.75
7.2.320.0030.01316.40
7.2.310.0030.01416.69
7.2.300.0150.01116.65
7.2.290.0100.01016.70
7.2.260.0160.00015.12
7.2.250.0050.01314.99
7.2.240.0090.00714.89
7.2.230.0110.00515.19
7.2.220.0060.00614.88
7.2.210.0070.00814.98
7.2.200.0060.00814.97
7.2.190.0070.00915.17
7.2.180.0070.00815.07
7.2.170.0110.00315.11
7.2.160.0030.01415.12
7.2.150.0040.00916.85
7.2.140.0060.00816.85
7.2.130.0280.00416.22
7.2.120.0210.00616.03
7.2.110.0290.00916.24
7.2.100.0230.00716.33
7.2.90.0220.00316.23
7.2.80.0220.00616.18
7.2.70.0210.00516.21
7.2.60.0200.00716.22
7.2.50.0210.00616.23
7.2.40.0200.01216.22
7.2.30.0210.00916.25
7.2.20.0390.00916.20
7.2.10.0240.00616.20
7.2.00.0190.01016.20
7.1.330.0120.00515.81
7.1.320.0080.00415.80
7.1.310.0070.00615.67
7.1.300.0070.00615.72
7.1.290.0030.00915.60
7.1.280.0050.00715.56
7.1.270.0000.01115.63
7.1.260.0060.00515.66
7.1.250.0270.00815.06
7.1.240.0030.01015.75
7.1.230.0070.00515.76
7.1.220.0030.00815.46
7.1.210.0030.01015.69
7.1.200.0040.00815.75
7.1.190.0040.00815.93
7.1.180.0020.01115.72
7.1.170.0040.00915.61
7.1.160.0110.00515.81
7.1.150.0070.00715.70
7.1.140.0060.00515.71
7.1.130.0070.00315.77
7.1.120.0040.00715.85
7.1.110.0090.00315.81
7.1.100.0040.00915.74
7.1.90.0050.00815.72
7.1.80.0060.00615.83
7.1.70.0050.00815.72
7.1.60.0030.01015.73
7.1.50.0040.00715.62
7.1.40.0030.01115.66
7.1.30.0050.00715.71
7.1.20.0050.00615.84
7.1.10.0080.00215.76
7.1.00.0050.00815.74

preferences:
62.42 ms | 403 KiB | 5 Q