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 const FLAG_5 = 0b1001; // 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"; } if ($flags & FLAG_5) { echo "You passed flag 5!<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.60.0100.01318.30
8.3.50.0140.00316.06
8.3.40.0120.00618.55
8.3.30.0120.00318.72
8.3.20.0080.00020.54
8.3.10.0080.00021.76
8.3.00.0040.00423.66
8.2.180.0110.00718.04
8.2.170.0110.00422.96
8.2.160.0040.01118.88
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00419.20
8.2.120.0040.00426.35
8.2.110.0070.00319.27
8.2.100.0080.00417.72
8.2.90.0060.00319.07
8.2.80.0080.00017.97
8.2.70.0030.00717.93
8.2.60.0070.00017.80
8.2.50.0000.00718.16
8.2.40.0030.00620.63
8.2.30.0050.00219.21
8.2.20.0050.00218.02
8.2.10.0040.00418.03
8.2.00.0040.00418.12
8.1.280.0070.00725.92
8.1.270.0070.00022.09
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00922.61
8.1.230.0080.00417.65
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.10
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0040.00418.50
8.1.160.0040.00418.70
8.1.150.0080.00018.69
8.1.140.0000.00819.13
8.1.130.0040.00417.70
8.1.120.0020.00517.30
8.1.110.0040.00417.40
8.1.100.0040.00417.31
8.1.90.0000.00717.43
8.1.80.0040.00417.43
8.1.70.0030.00317.43
8.1.60.0080.00017.53
8.1.50.0060.00317.42
8.1.40.0060.00317.45
8.1.30.0000.00817.52
8.1.20.0040.00417.60
8.1.10.0070.00317.47
8.1.00.0040.00417.35
8.0.300.0040.00418.77
8.0.290.0000.00916.63
8.0.280.0030.00318.23
8.0.270.0000.00717.19
8.0.260.0050.00317.19
8.0.250.0030.00316.78
8.0.240.0000.00716.88
8.0.230.0000.00916.92
8.0.220.0000.00716.84
8.0.210.0030.00316.69
8.0.200.0000.00716.89
8.0.190.0070.00016.87
8.0.180.0040.00416.82
8.0.170.0000.00816.79
8.0.160.0050.00216.89
8.0.150.0050.00216.79
8.0.140.0030.00616.70
8.0.130.0050.00013.29
8.0.120.0000.00816.77
8.0.110.0050.00316.75
8.0.100.0000.00716.62
8.0.90.0000.00716.71
8.0.80.0150.00616.82
8.0.70.0000.00716.66
8.0.60.0040.00416.71
8.0.50.0000.00716.77
8.0.30.0100.00816.84
8.0.20.0100.00917.40
8.0.10.0040.00416.74
8.0.00.0090.00916.82
7.4.330.0030.00316.53
7.4.320.0000.00716.49
7.4.300.0030.00316.46
7.4.290.0000.00716.53
7.4.280.0000.00716.45
7.4.270.0060.00316.52
7.4.260.0000.00716.45
7.4.250.0090.00016.42
7.4.240.0070.00016.56
7.4.230.0000.00816.56
7.4.220.0040.00416.65
7.4.210.0060.01316.53
7.4.200.0070.00016.55
7.4.160.0100.00816.49
7.4.150.0070.01017.40
7.4.140.0140.00817.86
7.4.130.0100.00716.42
7.4.120.0120.00916.40
7.4.110.0070.01016.38
7.4.100.0080.01116.63
7.4.90.0080.00816.44
7.4.80.0080.01019.39
7.4.70.0090.01216.34
7.4.60.0130.00916.50
7.4.50.0060.00616.37
7.4.40.0040.01216.47
7.4.10.0030.01314.82
7.4.00.0060.00914.94
7.3.330.0000.00613.17
7.3.320.0060.00013.30
7.3.310.0070.00016.30
7.3.300.0030.00516.19
7.3.290.0090.00816.38
7.3.280.0090.01216.33
7.3.270.0000.01817.40
7.3.260.0120.00516.57
7.3.250.0140.00616.41
7.3.240.0080.01216.41
7.3.230.0080.00816.58
7.3.210.0090.00616.43
7.3.200.0070.01016.59
7.3.190.0040.01616.28
7.3.180.0110.00716.57
7.3.170.0100.00716.39
7.3.160.0070.01016.61
7.3.130.0100.00714.96
7.3.120.0090.01014.92
7.3.110.0090.00914.62
7.3.100.0010.01414.87
7.3.90.0040.01214.75
7.3.80.0040.00614.68
7.3.70.0070.00914.90
7.3.60.0050.00814.64
7.3.50.0090.00314.75
7.3.40.0050.00814.57
7.3.30.0050.00814.80
7.3.20.0060.00616.73
7.3.10.0080.00516.47
7.3.00.0040.01216.49
7.2.330.0150.00816.77
7.2.320.0070.01016.40
7.2.310.0060.01216.72
7.2.300.0060.01316.62
7.2.290.0110.00616.53
7.2.260.0040.01515.23
7.2.250.0070.01315.25
7.2.240.0060.01015.02
7.2.230.0090.00515.10
7.2.220.0080.00314.91
7.2.210.0070.01115.10
7.2.200.0070.01014.82
7.2.190.0090.00515.06
7.2.180.0030.00815.03
7.2.170.0080.00314.87
7.2.160.0110.00515.06
7.2.150.0040.00817.04
7.2.140.0060.00816.96
7.2.130.0080.00816.78
7.2.120.0090.00516.93
7.2.110.0060.00816.73
7.2.100.0050.00716.81
7.2.90.0040.00916.93
7.2.80.0080.00616.77
7.2.70.0050.01016.87
7.2.60.0070.01116.83
7.2.50.0080.00716.89
7.2.40.0060.01216.90
7.2.30.0100.00616.91
7.2.20.0060.00716.94
7.2.10.0080.01017.07
7.2.00.0100.00617.10
7.1.330.0060.00815.75
7.1.320.0040.00915.67
7.1.310.0020.01215.65
7.1.300.0080.00515.73
7.1.290.0050.00715.67
7.1.280.0030.00815.77
7.1.270.0060.00615.56
7.1.260.0030.01015.75
7.1.250.0020.00715.72
7.1.240.0080.00515.71
7.1.230.0050.00815.89
7.1.220.0050.00615.69
7.1.210.0060.00715.91
7.1.200.0060.00615.65
7.1.190.0050.00715.90
7.1.180.0030.01015.70
7.1.170.0100.00415.82
7.1.160.0020.01215.67
7.1.150.0030.01115.81
7.1.140.0050.00915.80
7.1.130.0070.00915.99
7.1.120.0100.00816.15
7.1.110.0090.00815.80
7.1.100.0100.00916.04
7.1.90.0110.01015.71
7.1.80.0080.00815.68
7.1.70.0080.01215.63
7.1.60.0080.01221.53
7.1.50.0130.01321.21
7.1.40.0110.00921.31
7.1.30.0080.01221.42
7.1.20.0120.01321.37
7.1.10.0090.00615.32
7.1.00.0090.00715.45
7.0.330.0030.00915.18
7.0.320.0050.00815.49
7.0.310.0090.00615.33
7.0.300.0020.00915.52
7.0.290.0070.00515.16
7.0.280.0090.00415.23
7.0.270.0040.00615.46
7.0.260.0060.00515.42
7.0.250.0030.00815.46
7.0.240.0030.01015.30
7.0.230.0020.00915.48
7.0.220.0040.00515.27
7.0.210.0080.00315.43
7.0.200.0060.00815.27
7.0.190.0030.00815.44
7.0.180.0060.00315.27
7.0.170.0050.00715.45
7.0.160.0060.00615.31
7.0.150.0060.00715.47
7.0.140.0050.00515.43
7.0.130.0070.00515.44
7.0.120.0080.00715.24
7.0.110.0120.00215.46
7.0.100.0070.00715.46
7.0.90.0050.01015.39
7.0.80.0100.00715.38
7.0.70.0070.00615.50
7.0.60.0020.01015.39
7.0.50.0080.00715.51
7.0.40.0090.00713.40
7.0.30.0070.00613.29
7.0.20.0040.00713.39
7.0.10.0060.00713.31
7.0.00.0050.00913.55
5.6.400.0060.00814.11
5.6.390.0060.00614.45
5.6.380.0070.00514.17
5.6.370.0080.00414.41
5.6.360.0040.00714.37
5.6.350.0050.00814.29
5.6.340.0030.01014.25
5.6.330.0070.00313.99
5.6.320.0060.00314.12
5.6.310.0050.00714.46
5.6.300.0060.00613.98
5.6.290.0070.00914.05
5.6.280.0050.01114.07
5.6.270.0060.00614.38
5.6.260.0040.00814.21
5.6.250.0050.00914.29
5.6.240.0040.00914.23
5.6.230.0030.00714.38
5.6.220.0030.01114.11
5.6.210.0040.01314.12
5.6.200.0050.01214.04
5.6.190.0070.00814.41
5.6.180.0070.00914.18
5.6.170.0080.00914.28
5.6.160.0090.00614.20
5.6.150.0050.01014.17
5.6.140.0030.01014.37
5.6.130.0020.01214.33
5.6.120.0060.00514.30
5.6.110.0070.00714.35
5.6.100.0080.00614.28
5.6.90.0040.00914.50
5.6.80.0080.00714.13
5.6.70.0070.00814.21
5.6.60.0020.01514.03
5.6.50.0040.01014.13
5.6.40.0070.00714.12
5.6.30.0060.00614.22
5.6.20.0100.00414.22
5.6.10.0050.00914.13
5.6.00.0060.00714.06

preferences:
61.59 ms | 400 KiB | 5 Q