3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FLAG_1 = 0b0001; // 1 const FLAG_2 = 0b0010; // 2 const FLAG_3 = 0b0100; // 4 const FLAG_4 = 0b1000; // 8 // Can you see the pattern? ;-) function show_flags ($flags) { if ($flags & FLAG_1) { echo "You passed flag 1!<br>\n"; } if ($flags & FLAG_2) { echo "You passed flag 2!<br>\n"; } if ($flags & FLAG_3) { echo "You passed flag 3!<br>\n"; } if ($flags & FLAG_4) { echo "You passed flag 4!<br>\n"; } } show_flags(3072 | FLAG_3);

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.0150.00016.50
8.3.50.0230.01121.92
8.3.40.0130.00618.72
8.3.30.0040.01118.84
8.3.20.0040.00419.05
8.3.10.0040.00421.85
8.3.00.0050.00219.26
8.2.180.0090.00616.35
8.2.170.0120.00622.96
8.2.160.0100.00322.30
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00317.80
8.2.120.0080.00026.35
8.2.110.0000.01121.12
8.2.100.0090.00317.93
8.2.90.0000.00819.04
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0000.00717.80
8.2.50.0030.00518.07
8.2.40.0000.00720.63
8.2.30.0080.00019.27
8.2.20.0090.00317.52
8.2.10.0030.00518.03
8.2.00.0040.00418.05
8.1.280.0130.00725.92
8.1.270.0050.00323.96
8.1.260.0100.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0110.00019.22
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0050.00317.00
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0030.00320.74
8.1.150.0040.00418.81
8.1.140.0070.00019.43
8.1.130.0030.00617.55
8.1.120.0030.00517.30
8.1.110.0040.00417.38
8.1.100.0000.00717.29
8.1.90.0030.00617.29
8.1.80.0080.00017.47
8.1.70.0070.00017.29
8.1.60.0030.00617.57
8.1.50.0040.00417.44
8.1.40.0080.00017.46
8.1.30.0050.00517.60
8.1.20.0040.00417.55
8.1.10.0000.00717.42
8.1.00.0000.00817.35
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0070.00018.33
8.0.270.0080.00017.14
8.0.260.0050.00217.24
8.0.250.0000.00616.91
8.0.240.0080.00016.90
8.0.230.0000.00816.89
8.0.220.0000.00716.73
8.0.210.0000.00816.70
8.0.200.0000.00716.78
8.0.190.0040.00416.89
8.0.180.0000.00716.84
8.0.170.0030.00516.88
8.0.160.0040.00416.84
8.0.150.0070.00016.75
8.0.140.0060.00316.73
8.0.130.0030.00313.23
8.0.120.0030.00516.75
8.0.110.0040.00416.83
8.0.100.0070.00016.72
8.0.90.0040.00416.84
8.0.80.0030.01716.82
8.0.70.0070.00016.77
8.0.60.0070.00016.79
8.0.50.0050.00316.83
8.0.30.0060.01016.97
8.0.20.0110.01017.40
8.0.10.0040.00417.06
8.0.00.0100.00716.52
7.4.330.0000.00415.08
7.4.320.0030.00316.46
7.4.300.0030.00316.38
7.4.290.0080.00016.54
7.4.280.0000.00916.44
7.4.270.0030.00316.43
7.4.260.0030.00316.44
7.4.250.0070.00016.32
7.4.240.0000.00716.54
7.4.230.0000.00716.19
7.4.220.0090.01016.56
7.4.210.0120.00316.50
7.4.200.0030.00316.51
7.4.160.0100.00716.49
7.4.150.0070.01417.40
7.4.140.0110.00617.86
7.4.130.0120.00516.49
7.4.120.0110.00616.43
7.4.110.0070.01016.50
7.4.100.0060.01216.39
7.4.90.0070.01016.44
7.4.80.0170.00319.39
7.4.70.0100.01016.60
7.4.60.0090.00616.31
7.4.50.0120.00416.17
7.4.40.0060.01316.61
7.4.30.0120.00416.55
7.4.00.0050.01114.90
7.3.330.0030.00313.26
7.3.320.0060.00013.04
7.3.310.0030.00316.36
7.3.300.0030.00316.32
7.3.290.0090.00916.32
7.3.280.0090.00816.31
7.3.270.0140.00317.40
7.3.260.0060.01316.45
7.3.250.0130.00616.43
7.3.240.0130.00516.35
7.3.230.0110.00516.64
7.3.210.0080.00816.41
7.3.200.0170.00716.52
7.3.190.0030.01816.32
7.3.180.0100.01016.33
7.3.170.0070.01116.52
7.3.160.0030.01316.30
7.3.120.0100.01014.60
7.3.110.0000.01815.14
7.3.100.0000.01614.91
7.3.90.0090.00914.72
7.3.80.0090.00615.05
7.3.70.0080.00814.89
7.3.60.0050.00514.76
7.3.50.0060.01014.34
7.3.40.0070.00314.80
7.3.30.0080.00814.59
7.3.20.0110.00016.69
7.3.10.0020.01116.62
7.3.00.0080.00516.62
7.2.330.0140.00416.81
7.2.320.0060.01516.70
7.2.310.0180.00616.52
7.2.300.0030.01916.46
7.2.290.0070.00916.59
7.2.250.0060.01315.27
7.2.240.0100.00715.21
7.2.230.0060.00915.07
7.2.220.0070.00714.89
7.2.210.0100.00615.26
7.2.200.0070.00714.93
7.2.190.0070.01015.11
7.2.180.0000.01615.20
7.2.170.0050.00515.14
7.2.130.0090.00616.55
7.2.120.0090.00716.91
7.2.110.0080.00816.86
7.2.100.0080.00416.96
7.2.90.0110.00216.76
7.2.80.0050.00816.77
7.2.70.0090.00716.77
7.2.60.0090.00616.74
7.2.50.0090.00616.90
7.2.40.0060.01016.62
7.2.30.0050.00816.66
7.2.20.0090.00516.84
7.2.10.0090.00516.89
7.2.00.0050.00917.80
7.1.330.0070.00715.70
7.1.320.0110.00015.86
7.1.310.0070.00715.73
7.1.300.0060.00615.77
7.1.290.0040.00415.45
7.1.280.0000.01015.73
7.1.270.0040.00715.53
7.1.260.0060.00615.64
7.1.250.0070.00715.51
7.1.240.0070.00315.25
7.1.230.0030.00915.60
7.1.220.0030.01015.55
7.1.210.0070.00715.71
7.1.200.0100.00015.46
7.1.190.0070.00515.46
7.1.180.0030.01215.73
7.1.170.0130.00415.53
7.1.160.0170.00015.42
7.1.150.0180.00015.50
7.1.140.0160.00015.79
7.1.130.0120.00715.52
7.1.120.0110.00415.50
7.1.110.0060.00815.46
7.1.100.0060.00816.90
7.1.90.0130.00715.28
7.1.80.0090.00615.48
7.1.70.0070.00516.18
7.1.60.0110.00717.62
7.1.50.0120.00615.32
7.1.40.0100.00715.68
7.1.30.0090.00315.47
7.1.20.0150.00015.65
7.1.10.0130.00015.27
7.1.00.0080.04219.13
7.0.330.0070.00715.34
7.0.320.0120.00415.15
7.0.310.0100.00315.20
7.0.300.0070.01015.33
7.0.290.0070.00715.19
7.0.280.0090.00615.29
7.0.270.0130.00015.29
7.0.260.0040.01115.14
7.0.250.0060.00615.30
7.0.240.0110.00415.19
7.0.230.0120.00615.18
7.0.220.0090.00915.20
7.0.210.0090.00615.11
7.0.200.0380.00914.72
7.0.190.0160.00414.98
7.0.180.0130.01015.15
7.0.170.0120.00615.22
7.0.160.0060.00915.26
7.0.150.0060.01315.04
7.0.140.0060.01214.85
7.0.130.0120.00614.99
7.0.120.0110.01115.40
7.0.110.0110.01115.28
7.0.100.0080.01215.29
7.0.90.0190.00415.36
7.0.80.0190.00815.14
7.0.70.0110.01115.02
7.0.60.0230.03617.60
7.0.50.0270.03417.91
7.0.40.0210.03516.72
7.0.30.0260.02916.75
7.0.20.0220.03116.70
7.0.10.0180.03116.83
7.0.00.0190.03416.65
5.6.380.0030.00714.22
5.6.370.0070.00714.02
5.6.360.0000.01014.21
5.6.350.0030.00914.22
5.6.340.0060.00914.07
5.6.330.0030.01014.09
5.6.320.0060.00613.98
5.6.310.0060.00614.25
5.6.300.0080.01314.06
5.6.290.0040.01114.06
5.6.280.0050.04017.63
5.6.270.0060.01214.41
5.6.260.0070.01014.07
5.6.250.0090.00613.92
5.6.240.0070.01314.21
5.6.230.0110.00814.25
5.6.220.0060.01413.88
5.6.210.0250.03417.47
5.6.200.0220.03717.51
5.6.190.0230.03317.55
5.6.180.0210.03117.56
5.6.170.0180.03217.56
5.6.160.0240.02717.39
5.6.150.0270.02617.56
5.6.140.0080.03217.59
5.6.130.0120.03817.41
5.6.120.0220.03217.51
5.6.110.0200.03017.29
5.6.100.0180.03317.40
5.6.90.0260.02617.48
5.6.80.0200.03017.41
5.6.70.0180.02817.25
5.6.60.0080.03117.14
5.6.50.0230.03417.14
5.6.40.0180.03017.18
5.6.30.0170.03217.29
5.6.20.0050.03617.17
5.6.10.0110.03317.36
5.6.00.0260.03117.25
5.5.380.0080.00510.95
5.5.370.0030.00510.69
5.5.360.0040.00810.71
5.5.350.0150.04015.64
5.5.340.0160.03316.00
5.5.330.0200.03015.85
5.5.320.0280.03016.28
5.5.310.0190.03215.99
5.5.300.0210.03316.09
5.5.290.0230.03016.10
5.5.280.0140.03115.98
5.5.270.0200.03315.93
5.5.260.0150.03615.85
5.5.250.0200.04015.81
5.5.240.0180.03015.50
5.5.230.0210.03015.49
5.5.220.0080.02915.40
5.5.210.0090.02915.45
5.5.200.0230.02315.47
5.5.190.0200.03315.54
5.5.180.0170.02515.49
5.5.170.0050.00511.07
5.5.160.0200.02815.57
5.5.150.0220.02515.67
5.5.140.0250.02615.52
5.5.130.0180.02815.48
5.5.120.0170.03215.58
5.5.110.0130.03515.72
5.5.100.0230.02915.44
5.5.90.0170.03315.40
5.5.80.0220.03115.55
5.5.70.0210.03115.45
5.5.60.0180.03115.47
5.5.50.0260.02315.56
5.5.40.0200.03115.46
5.5.30.0180.02815.34
5.5.20.0220.02515.49
5.5.10.0130.03015.28
5.5.00.0120.02315.38

preferences:
61.97 ms | 401 KiB | 5 Q