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(FLAG_1 | 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.130.0080.00016.79
8.3.120.0040.00418.89
8.3.110.0040.00720.94
8.3.100.0000.00824.06
8.3.90.0140.00926.77
8.3.80.0030.00616.75
8.3.70.0220.00217.27
8.3.60.0180.00518.10
8.3.50.0140.00721.27
8.3.40.0140.00918.24
8.3.30.0160.00720.75
8.3.20.0130.00621.37
8.3.10.0080.01021.41
8.3.00.0110.00622.54
8.2.250.0030.00618.44
8.2.240.0060.01318.63
8.2.230.0040.00422.58
8.2.220.0060.00937.54
8.2.210.0090.00326.77
8.2.200.0030.00616.25
8.2.190.0190.00417.27
8.2.180.0130.00621.95
8.2.170.0190.00218.46
8.2.160.0170.00621.72
8.2.150.0190.00422.39
8.2.140.0170.00322.14
8.2.130.0100.00823.63
8.2.120.0110.00622.57
8.2.110.0110.00321.97
8.2.100.0140.00520.75
8.2.90.0080.00921.29
8.2.80.0090.00721.45
8.2.70.0100.00545.49
8.2.60.0110.00426.24
8.2.50.0110.00528.55
8.2.40.0080.00725.81
8.2.30.0100.00527.46
8.2.20.0100.00527.31
8.2.10.0090.00627.36
8.2.00.0070.00827.31
8.1.300.0070.01020.16
8.1.290.0040.00430.84
8.1.280.0150.00421.95
8.1.270.0110.00622.14
8.1.260.0100.00523.67
8.1.250.0090.00524.01
8.1.240.0090.00621.71
8.1.230.0070.00721.64
8.1.220.0100.00521.21
8.1.210.0100.00521.81
8.1.200.0100.00528.41
8.1.190.0100.00528.32
8.1.180.0120.00328.47
8.1.170.0110.00427.34
8.1.160.0090.00627.39
8.1.150.0100.00527.42
8.1.140.0100.00627.23
8.1.130.0090.00425.43
8.1.120.0110.00427.20
8.1.110.0100.00627.24
8.1.100.0110.00526.21
8.1.90.0100.00626.23
8.1.80.0070.00724.74
8.1.70.0100.00526.26
8.1.60.0120.00526.43
8.1.50.0090.00723.69
8.1.40.0130.00623.73
8.1.30.0130.00523.78
8.1.20.0140.00423.13
8.1.10.0130.00523.04
8.1.00.0120.00521.78
8.0.300.0080.00621.84
8.0.290.0100.00628.39
8.0.280.0100.00627.16
8.0.270.0100.00627.02
8.0.260.0110.00526.98
8.0.250.0110.00427.11
8.0.240.0120.00427.07
8.0.230.0110.00426.06
8.0.220.0110.00325.96
8.0.210.0130.00325.99
8.0.200.0120.00426.00
8.0.190.0110.00526.00
8.0.180.0110.00524.46
8.0.170.0110.00623.39
8.0.160.0120.00523.35
8.0.150.0140.00422.50
8.0.140.0120.00622.38
8.0.130.0120.00522.16
8.0.120.0110.00622.42
8.0.110.0100.00622.00
8.0.100.0130.00422.41
8.0.90.0100.00622.08
8.0.80.0120.00622.08
8.0.70.0100.00522.03
8.0.60.0110.00622.04
8.0.50.0120.00622.05
8.0.30.0110.00720.02
8.0.20.0120.00719.80
8.0.10.0120.00819.79
8.0.00.0110.00719.48
7.4.330.0090.00424.10
7.4.320.0120.00526.68
7.4.300.0100.00623.02
7.4.290.0100.00622.57
7.4.280.0150.00523.04
7.4.270.0140.00321.55
7.4.260.0120.00521.50
7.4.250.0130.00522.18
7.4.240.0140.00421.28
7.4.230.0150.00522.19
7.4.220.0140.00421.86
7.4.210.0130.00421.28
7.4.200.0100.00621.82
7.4.190.0140.00522.18
7.4.180.0130.00522.23
7.4.160.0140.00519.55
7.4.150.0130.00619.57
7.4.140.0120.00819.32
7.4.130.0110.00719.06
7.4.120.0120.00818.95
7.4.110.0120.00918.99
7.4.100.0120.00818.93
7.4.90.0120.00818.77
7.4.80.0120.00718.74
7.4.70.0120.00718.64
7.4.60.0120.00718.54
7.4.50.0120.00718.52
7.4.40.0120.00618.52
7.4.30.0110.00818.45
7.4.20.0130.00718.46
7.4.10.0110.00718.37
7.4.00.0100.00718.17
7.3.330.0160.00422.10
7.3.320.0170.00521.91
7.3.310.0160.00422.08
7.3.300.0150.00522.06
7.3.290.0150.00521.74
7.3.280.0130.00519.73
7.3.270.0130.00619.49
7.3.260.0130.00619.25
7.3.250.0120.00818.93
7.3.240.0130.00718.93
7.3.230.0140.00718.93
7.3.220.0140.00718.88
7.3.210.0130.00918.72
7.3.200.0140.00618.71
7.3.190.0130.00718.65
7.3.180.0140.00618.60
7.3.170.0120.00718.51
7.3.160.0130.00718.52
7.3.150.0130.00718.46
7.3.140.0130.00718.42
7.3.130.0120.00818.36
7.3.120.0120.00718.01
7.3.110.0110.00818.03
7.3.100.0120.00717.91
7.3.90.0110.00718.06
7.3.80.0110.00717.97
7.3.70.0120.00718.02
7.3.60.0120.00718.05
7.3.50.0120.00718.02
7.3.40.0120.00718.03
7.3.30.0120.00717.95
7.3.20.0190.00718.23
7.3.10.0200.00718.10
7.3.00.0320.00718.01
7.2.340.0160.00819.13
7.2.330.0150.00818.80
7.2.320.0160.00718.74
7.2.310.0160.00718.70
7.2.300.0150.00818.66
7.2.290.0150.00818.64
7.2.280.0150.00818.50
7.2.270.0160.00718.51
7.2.260.0140.00918.48
7.2.250.0150.00718.24
7.2.240.0150.00818.17
7.2.230.0140.00918.12
7.2.220.0140.00818.11
7.2.210.0140.00918.10
7.2.200.0150.00818.17
7.2.190.0150.00718.15
7.2.180.0160.00818.14
7.2.170.0150.00818.17
7.2.160.0150.00818.15
7.2.150.0220.00818.40
7.2.140.0230.00718.41
7.2.130.0300.00818.25
7.2.120.0240.00818.23
7.2.110.0210.00818.19
7.2.100.0260.00818.21
7.2.90.0240.00818.16
7.2.80.0240.00718.16
7.2.70.0240.00718.14
7.2.60.0380.00817.98
7.2.50.0400.00717.98
7.2.40.0360.00818.03
7.2.30.0370.00818.04
7.2.20.0390.00818.09
7.2.10.0390.00818.08
7.2.00.0350.00818.10
7.1.330.0170.00817.72
7.1.320.0170.00817.65
7.1.310.0170.00817.66
7.1.300.0170.00817.64
7.1.290.0170.00717.65
7.1.280.0170.00717.64
7.1.270.0210.00717.57
7.1.260.0210.00717.55
7.1.250.0300.00817.23
7.1.240.0250.00817.20
7.1.230.0250.00717.20
7.1.220.0280.00817.19
7.1.210.0270.00717.20
7.1.200.0240.00717.17
7.1.190.0240.00717.16
7.1.180.0280.00717.15
7.1.170.0400.00716.96
7.1.160.0420.00817.06
7.1.150.0360.00817.05
7.1.140.0380.00817.04
7.1.130.0420.00817.03
7.1.120.0350.00717.07
7.1.110.0380.00717.08
7.1.100.0340.00817.08
7.1.90.0390.00717.08
7.1.80.0410.00717.09
7.1.70.0340.00817.04
7.1.60.0290.00817.98
7.1.50.0280.00717.97
7.1.40.0270.00817.97
7.1.30.0260.00817.98
7.1.20.0260.00817.93
7.1.10.0260.00717.04
7.1.00.0240.00817.01
7.0.330.0310.00716.98
7.0.320.0290.00716.93
7.0.310.0260.00616.92
7.0.300.0400.00816.75
7.0.290.0430.00716.81
7.0.280.0240.00716.91
7.0.270.0380.00716.80
7.0.260.0380.00716.79
7.0.250.0380.00716.86
7.0.240.0410.00716.87
7.0.230.0320.00816.86
7.0.220.0340.00716.87
7.0.210.0310.00716.84
7.0.200.0300.00716.86
7.0.190.0280.00716.85
7.0.180.0260.00716.83
7.0.170.0310.00816.86
7.0.160.0270.00716.83
7.0.150.0240.00716.83
7.0.140.0240.00816.84
7.0.130.0250.00816.87
7.0.120.0300.00816.87
7.0.110.0240.00816.81
7.0.100.0250.00716.80
7.0.90.0240.00716.81
7.0.80.0240.00616.79
7.0.70.0250.00616.78
7.0.60.0220.00716.84
7.0.50.0210.00716.82
7.0.40.0240.00716.85
7.0.30.0220.00716.85
7.0.20.0320.00716.79
7.0.10.0220.00816.86
7.0.00.0220.00716.83
5.6.400.0150.00817.53
5.6.390.0160.00817.53
5.6.380.0160.00817.14
5.6.370.0160.00817.11
5.6.360.0150.00917.16
5.6.350.0150.00917.12
5.6.340.0150.00817.11
5.6.330.0140.00917.08
5.6.320.0160.00817.12
5.6.310.0150.00817.13
5.6.300.0140.00917.03
5.6.290.0160.00817.11
5.6.280.0150.00917.12
5.6.270.0150.00917.09
5.6.260.0150.00917.09
5.6.250.0160.00817.08
5.6.240.0160.00817.13
5.6.230.0150.01017.13
5.6.220.0160.00917.09
5.6.210.0170.00817.08
5.6.200.0150.01017.10
5.6.190.0140.01017.11
5.6.180.0150.00917.11
5.6.170.0150.00917.11
5.6.160.0150.00917.08
5.6.150.0150.00917.11
5.6.140.0140.01017.07
5.6.130.0150.00917.12
5.6.120.0140.01017.13
5.6.110.0150.01017.06
5.6.100.0140.01017.03
5.6.90.0150.00917.07
5.6.80.0150.00817.05
5.6.70.0140.00917.07
5.6.60.0140.00917.06
5.6.50.0130.01017.02
5.6.40.0140.00917.04
5.6.30.0140.00917.04
5.6.20.0140.00917.02
5.6.10.0130.01016.99
5.6.00.0140.00917.01
5.5.380.0150.00816.60
5.5.370.0150.00916.61
5.5.360.0150.01016.54
5.5.350.0150.00916.55
5.5.340.0150.00916.54
5.5.330.0150.00916.52
5.5.320.0150.00916.50
5.5.310.0150.00916.53
5.5.300.0160.00816.55
5.5.290.0150.00916.53
5.5.280.0150.00816.53
5.5.270.0150.00816.49
5.5.260.0150.00916.51
5.5.250.0150.00916.54
5.5.240.0150.00816.52
5.5.230.0140.01016.53
5.5.220.0160.00816.54
5.5.210.0140.00916.51
5.5.200.0160.00916.47
5.5.190.0140.00916.52
5.5.180.0150.00816.48
5.5.170.0150.00816.83
5.5.160.0150.00816.48
5.5.150.0160.00816.48
5.5.140.0160.00916.43
5.5.130.0160.00816.42
5.5.120.0150.00916.43
5.5.110.0160.00816.42
5.5.100.0150.00816.49
5.5.90.0150.00916.50
5.5.80.0140.00916.48
5.5.70.0140.00916.52
5.5.60.0160.00916.52
5.5.50.0140.00916.52
5.5.40.0150.00916.50
5.5.30.0140.00916.49
5.5.20.0140.00916.50
5.5.10.0150.00816.47
5.5.00.0150.00916.48
5.4.450.0120.00714.52
5.4.440.0120.00614.51
5.4.430.0120.00714.51
5.4.420.0110.00814.51
5.4.410.0110.00714.50
5.4.400.0130.00714.47
5.4.390.0120.00714.43
5.4.380.0110.00714.45
5.4.370.0120.00714.47
5.4.360.0120.00714.46
5.4.350.0120.00714.45
5.4.340.0130.00614.44
5.4.330.0120.00614.52
5.4.320.0120.00714.49
5.4.310.0120.00714.49
5.4.300.0130.00714.49
5.4.290.0120.00814.49
5.4.280.0130.00714.49
5.4.270.0130.00614.49
5.4.260.0130.00614.49
5.4.250.0120.00714.49
5.4.240.0120.00614.46
5.4.230.0120.00714.40
5.4.220.0130.00614.41
5.4.210.0130.00714.41
5.4.200.0130.00614.40
5.4.190.0130.00714.42
5.4.180.0130.00614.42
5.4.170.0120.00714.41
5.4.160.0120.00714.39
5.4.150.0130.00614.41
5.4.140.0120.00714.43
5.4.130.0120.00714.43
5.4.120.0120.00614.42
5.4.110.0120.00614.43
5.4.100.0120.00614.44
5.4.90.0120.00614.45
5.4.80.0120.00714.46
5.4.70.0120.00714.47
5.4.60.0120.00714.46
5.4.50.0110.00614.41
5.4.40.0130.00614.43
5.4.30.0110.00814.46
5.4.20.0120.00614.46
5.4.10.0110.00714.45
5.4.00.0110.00714.39

preferences:
37.3 ms | 403 KiB | 5 Q