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_1);

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.0040.01116.50
8.3.50.0040.01118.18
8.3.40.0140.00718.54
8.3.30.0110.00418.59
8.3.20.0030.00619.05
8.3.10.0000.00721.94
8.3.00.0040.00419.05
8.2.180.0100.00316.63
8.2.170.0090.00922.96
8.2.160.0130.00322.31
8.2.150.0060.00324.18
8.2.140.0050.00224.66
8.2.130.0000.00819.54
8.2.120.0040.00426.35
8.2.110.0000.00920.97
8.2.100.0080.00417.93
8.2.90.0050.00319.09
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00717.80
8.2.50.0040.00418.07
8.2.40.0040.00420.42
8.2.30.0040.00419.25
8.2.20.0110.00017.50
8.2.10.0040.00418.00
8.2.00.0050.00318.03
8.1.280.0070.01425.92
8.1.270.0000.00723.95
8.1.260.0100.00028.09
8.1.250.0000.00728.09
8.1.240.0090.00022.36
8.1.230.0030.00719.01
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0050.00316.88
8.1.180.0060.00318.10
8.1.170.0040.00418.46
8.1.160.0080.00020.71
8.1.150.0000.00718.74
8.1.140.0070.00019.51
8.1.130.0050.00317.64
8.1.120.0030.00417.30
8.1.110.0040.00417.37
8.1.100.0000.00717.32
8.1.90.0000.00917.36
8.1.80.0000.00717.29
8.1.70.0000.00817.45
8.1.60.0030.00517.52
8.1.50.0030.00617.49
8.1.40.0040.00417.38
8.1.30.0030.00617.53
8.1.20.0080.00017.57
8.1.10.0040.00417.46
8.1.00.0000.00917.40
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0080.00018.27
8.0.270.0040.00417.20
8.0.260.0040.00417.13
8.0.250.0000.00716.93
8.0.240.0030.00316.91
8.0.230.0030.00316.89
8.0.220.0030.00316.77
8.0.210.0050.00316.82
8.0.200.0030.00316.93
8.0.190.0040.00416.93
8.0.180.0070.00016.78
8.0.170.0000.00716.73
8.0.160.0000.00716.73
8.0.150.0040.00416.87
8.0.140.0030.00616.78
8.0.130.0000.00513.25
8.0.120.0040.00416.75
8.0.110.0040.00416.80
8.0.100.0000.00716.83
8.0.90.0030.00316.63
8.0.80.0110.00816.78
8.0.70.0000.00716.89
8.0.60.0000.00716.87
8.0.50.0040.00416.84
8.0.30.0070.00917.02
8.0.20.0150.00717.40
8.0.10.0020.00516.90
8.0.00.0070.01316.53
7.4.330.0000.00415.08
7.4.320.0000.00616.45
7.4.300.0030.00316.57
7.4.290.0040.00416.34
7.4.280.0030.00616.50
7.4.270.0000.00716.37
7.4.260.0000.00716.51
7.4.250.0030.00316.32
7.4.240.0000.00716.46
7.4.230.0030.00316.42
7.4.220.0120.01216.64
7.4.210.0080.00516.57
7.4.200.0000.00716.56
7.4.160.0080.00816.53
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0090.00916.50
7.4.120.0050.01216.31
7.4.110.0100.00716.41
7.4.100.0100.00616.54
7.4.90.0060.01016.59
7.4.80.0190.01119.39
7.4.70.0090.00616.41
7.4.60.0120.00416.44
7.4.50.0070.00716.30
7.4.40.0030.02016.41
7.4.30.0000.01716.63
7.4.10.0060.01314.31
7.4.00.0080.00814.86
7.3.330.0050.00013.23
7.3.320.0030.00313.09
7.3.310.0000.00716.21
7.3.300.0030.00316.30
7.3.290.0070.00916.27
7.3.280.0110.00716.25
7.3.270.0000.01817.40
7.3.260.0070.01016.44
7.3.250.0120.00916.58
7.3.240.0030.01616.43
7.3.230.0000.01616.40
7.3.210.0070.01016.50
7.3.200.0090.00616.51
7.3.190.0080.00716.33
7.3.180.0080.01116.44
7.3.170.0150.00316.27
7.3.160.0030.01316.46
7.3.130.0110.00414.74
7.3.120.0060.01014.61
7.3.110.0080.00914.72
7.3.100.0040.01214.84
7.3.90.0070.00714.82
7.3.80.0080.00714.60
7.3.70.0070.00814.85
7.3.60.0020.00914.72
7.3.50.0050.01014.72
7.3.40.0060.00714.61
7.3.30.0040.01114.80
7.3.20.0110.00216.59
7.3.10.0010.01116.66
7.3.00.0070.00816.37
7.2.330.0100.00716.52
7.2.320.0110.00716.78
7.2.310.0090.00916.76
7.2.300.0090.00916.81
7.2.290.0120.00316.60
7.2.260.0060.01115.30
7.2.250.0090.00814.86
7.2.240.0080.01115.01
7.2.230.0020.01415.20
7.2.220.0060.00814.85
7.2.210.0060.00814.98
7.2.200.0050.00614.90
7.2.190.0060.00914.95
7.2.180.0090.00815.01
7.2.170.0050.00814.94
7.2.160.0030.00914.64
7.2.150.0100.00316.60
7.2.140.0030.00616.75
7.2.130.0030.01116.79
7.2.120.0040.00916.82
7.2.110.0090.00716.84
7.2.100.0110.00516.81
7.2.90.0070.01116.66
7.2.80.0030.01516.84
7.2.70.0120.00916.65
7.2.60.0060.01116.82
7.2.50.0130.00816.56
7.2.40.0100.00416.91
7.2.30.0110.00816.68
7.2.20.0050.00716.64
7.2.10.0070.01116.47
7.2.00.0070.01017.65
7.1.330.0070.00815.74
7.1.320.0070.00715.69
7.1.310.0050.00915.83
7.1.300.0050.00815.57
7.1.290.0050.00715.59
7.1.280.0090.00415.69
7.1.270.0050.01015.67
7.1.260.0050.00715.68
7.1.250.0050.00915.71
7.1.240.0090.00815.60
7.1.230.0040.00615.62
7.1.220.0040.01115.44
7.1.210.0050.01015.52
7.1.200.0070.00615.61
7.1.190.0110.00515.52
7.1.180.0100.00615.61
7.1.170.0100.00715.61
7.1.160.0110.00515.72
7.1.150.0070.00915.33
7.1.140.0080.00615.64
7.1.130.0080.00815.69
7.1.120.0090.01015.77
7.1.110.0090.00715.59
7.1.100.0060.00916.42
7.1.90.0090.01015.52
7.1.80.0110.00415.56
7.1.70.0080.00516.03
7.1.60.0100.00917.07
7.1.50.0130.00315.71
7.1.40.0100.00715.57
7.1.30.0090.00815.64
7.1.20.0110.00615.48
7.1.10.0110.00815.47
7.1.00.0100.02817.83
7.0.330.0080.00715.34
7.0.320.0030.00915.48
7.0.310.0080.00815.35
7.0.300.0090.00815.36
7.0.290.0110.00615.34
7.0.280.0100.00615.16
7.0.270.0090.01015.25
7.0.260.0090.00915.22
7.0.250.0090.00715.31
7.0.240.0100.00615.26
7.0.230.0100.00515.43
7.0.220.0100.00815.35
7.0.210.0130.00615.14
7.0.200.0370.00314.95
7.0.190.0060.00715.34
7.0.180.0040.01015.10
7.0.170.0050.00915.29
7.0.160.0080.00915.04
7.0.150.0110.00715.12
7.0.140.0090.00315.03
7.0.130.0100.00615.06
7.0.120.0070.01015.41
7.0.110.0080.01215.40
7.0.100.0120.00715.07
7.0.90.0160.00215.31
7.0.80.0060.01015.33
7.0.70.0070.01315.39
7.0.60.0090.02616.83
7.0.50.0210.02017.04
7.0.40.0120.02815.61
7.0.30.0190.02315.74
7.0.20.0150.03015.57
7.0.10.0150.02515.70
7.0.00.0140.02615.59
5.6.400.0000.01214.31
5.6.390.0070.00714.17
5.6.380.0070.00814.35
5.6.370.0050.01014.05
5.6.360.0050.00914.07
5.6.350.0110.00314.26
5.6.340.0030.00914.19
5.6.330.0070.00514.30
5.6.320.0070.00714.14
5.6.310.0080.00614.24
5.6.300.0070.00814.32
5.6.290.0100.00314.26
5.6.280.0030.03116.35
5.6.270.0050.00713.94
5.6.260.0050.00814.14
5.6.250.0030.01114.08
5.6.240.0070.00814.42
5.6.230.0060.00914.16
5.6.220.0090.00314.20
5.6.210.0110.02116.34
5.6.200.0160.02516.48
5.6.190.0100.02116.38
5.6.180.0190.01916.55
5.6.170.0150.02316.40
5.6.160.0170.02616.45
5.6.150.0150.02716.53
5.6.140.0070.02416.63
5.6.130.0100.02716.51
5.6.120.0100.02216.40
5.6.110.0120.02716.35
5.6.100.0180.02416.38
5.6.90.0210.02916.55
5.6.80.0130.02616.03
5.6.70.0120.02416.16
5.6.60.0110.02416.33
5.6.50.0140.02416.21
5.6.40.0180.02216.20
5.6.30.0110.02416.38
5.6.20.0170.02116.25
5.6.10.0140.02316.29
5.6.00.0170.02216.28
5.5.380.0030.00712.77
5.5.370.0040.01012.61
5.5.360.0060.00812.64
5.5.350.0140.02015.24
5.5.340.0100.02515.52
5.5.330.0070.02515.43
5.5.320.0120.02415.51
5.5.310.0160.02215.39
5.5.300.0070.02215.20
5.5.290.0080.02315.39
5.5.280.0040.02715.42
5.5.270.0150.02515.38
5.5.260.0190.02415.36
5.5.250.0140.02315.12
5.5.240.0110.02515.08
5.5.230.0130.02215.12
5.5.220.0130.01915.10
5.5.210.0150.02015.28
5.5.200.0160.02414.98
5.5.190.0160.01915.12
5.5.180.0160.02014.96
5.5.170.0010.00612.74
5.5.160.0120.02214.92
5.5.150.0040.02715.08
5.5.140.0080.02314.96
5.5.130.0080.02115.11
5.5.120.0060.02315.19
5.5.110.0110.01814.95
5.5.100.0120.02014.91
5.5.90.0100.02515.00
5.5.80.0080.02115.04
5.5.70.0090.02315.07
5.5.60.0040.02614.98
5.5.50.0110.01815.04
5.5.40.0090.02115.15
5.5.30.0080.02315.13
5.5.20.0110.02215.16
5.5.10.0120.01915.06
5.5.00.0090.02215.12

preferences:
60.05 ms | 401 KiB | 5 Q