3v4l.org

run code in 300+ PHP versions simultaneously
<?php function show_flags ($flags) { if ($flags & 1) { echo "You passed flag 1!<br>\n";} if ($flags & 2) { echo "You passed flag 2!<br>\n";} if ($flags & 4) { echo "You passed flag 3!<br>\n";} if ($flags & 8) { echo "You passed flag 4!<br>\n";} if ($flags & 16) { echo "You passed flag 5!<br>\n";} if ($flags & 32) { echo "You passed flag 6!<br>\n";} if ($flags & 64) { echo "You passed flag 7!<br>\n";} if ($flags & 128) { echo "You passed flag 8!<br>\n";} } show_flags(254);

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.40.0060.00918.67
8.3.30.0110.00418.58
8.3.20.0000.00720.21
8.3.10.0040.00423.60
8.3.00.0000.00819.25
8.2.170.0070.00722.96
8.2.160.0100.00320.55
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00717.25
8.2.120.0040.00426.35
8.2.110.0030.00720.90
8.2.100.0090.00317.78
8.2.90.0030.00618.84
8.2.80.0030.00517.97
8.2.70.0050.00317.93
8.2.60.0040.00417.80
8.2.50.0000.00918.10
8.2.40.0000.00720.42
8.2.30.0030.00320.50
8.2.20.0030.00717.51
8.2.10.0000.00717.98
8.2.00.0040.00417.92
8.1.270.0090.00023.98
8.1.260.0050.00228.09
8.1.250.0080.00028.09
8.1.240.0030.00722.38
8.1.230.0070.00420.97
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0100.00017.22
8.1.190.0000.00817.22
8.1.180.0080.00018.10
8.1.170.0050.00318.45
8.1.160.0000.00721.89
8.1.150.0030.00618.68
8.1.140.0040.00419.47
8.1.130.0000.00717.48
8.1.120.0000.00817.24
8.1.110.0000.00717.21
8.1.100.0040.00417.32
8.1.90.0000.00817.37
8.1.80.0000.00717.30
8.1.70.0040.00417.25
8.1.60.0000.00817.36
8.1.50.0040.00417.35
8.1.40.0080.00017.34
8.1.30.0060.00317.57
8.1.20.0070.00017.44
8.1.10.0040.00417.44
8.1.00.0040.00817.42
8.0.300.0030.00319.97
8.0.290.0040.00416.58
8.0.280.0070.00018.38
8.0.270.0000.00717.18
8.0.260.0030.00317.09
8.0.250.0030.00316.71
8.0.240.0070.00016.90
8.0.230.0000.00716.78
8.0.220.0080.00016.75
8.0.210.0000.00716.65
8.0.200.0030.00316.73
8.0.190.0070.00016.79
8.0.180.0050.00316.81
8.0.170.0000.00716.75
8.0.160.0000.00716.80
8.0.150.0070.00016.66
8.0.140.0040.00416.70
8.0.130.0030.00313.14
8.0.120.0070.00016.62
8.0.110.0050.00316.65
8.0.100.0040.00416.65
8.0.90.0050.00216.77
8.0.80.0100.01016.76
8.0.70.0070.00016.71
8.0.60.0040.00416.56
8.0.50.0040.00416.63
8.0.30.0120.00916.94
8.0.20.0100.01317.40
8.0.10.0000.00716.82
8.0.00.0080.00816.63
7.4.330.0020.00216.67
7.4.320.0070.00016.29
7.4.300.0000.00716.53
7.4.290.0040.00416.52
7.4.280.0040.00416.43
7.4.270.0030.00316.45
7.4.260.0070.00316.41
7.4.250.0040.00416.50
7.4.240.0030.00316.50
7.4.230.0000.00716.48
7.4.220.0090.01616.55
7.4.210.0060.01316.32
7.4.200.0070.00016.55
7.4.160.0060.00916.44
7.4.150.0060.01317.40
7.4.140.0080.01317.86
7.4.130.0100.01016.51
7.4.120.0080.00816.46
7.4.110.0060.01216.17
7.4.100.0140.00316.40
7.4.90.0070.01016.50
7.4.80.0100.01019.39
7.4.70.0070.01016.55
7.4.60.0060.01016.34
7.4.50.0120.00316.33
7.4.40.0180.00016.41
7.4.30.0100.00716.20
7.4.00.0100.01014.47
7.3.330.0000.00513.27
7.3.320.0030.00313.32
7.3.310.0050.00216.19
7.3.300.0000.00716.16
7.3.290.0080.00716.25
7.3.280.0060.01116.23
7.3.270.0100.00717.40
7.3.260.0110.01116.31
7.3.250.0120.00816.41
7.3.240.0120.00916.38
7.3.230.0180.00016.39
7.3.210.0060.01216.33
7.3.200.0030.01516.46
7.3.190.0030.01316.38
7.3.180.0110.00816.31
7.3.170.0130.01116.49
7.3.160.0080.01316.25
7.3.120.0110.00714.84
7.3.110.0030.00914.95
7.3.100.0130.00314.80
7.3.90.0040.01514.67
7.3.80.0070.00714.69
7.3.70.0030.01014.73
7.3.60.0060.00314.84
7.3.50.0060.00314.87
7.3.40.0000.01014.73
7.3.30.0040.01214.70
7.3.20.0030.00916.77
7.3.10.0130.00016.60
7.3.00.0030.00716.63
7.2.330.0100.00716.75
7.2.320.0110.01216.58
7.2.310.0100.01016.51
7.2.300.0090.01416.70
7.2.290.0030.01416.57
7.2.250.0110.00815.20
7.2.240.0100.01015.30
7.2.230.0090.01214.91
7.2.220.0070.01014.63
7.2.210.0070.00715.02
7.2.200.0000.00915.05
7.2.190.0060.00614.80
7.2.180.0060.00615.02
7.2.170.0000.01514.98
7.2.160.0030.01414.89
7.2.150.0040.00416.82
7.2.140.0000.01316.80
7.2.130.0030.00716.78
7.2.120.0040.00916.78
7.2.110.0060.00616.66
7.2.100.0000.01516.90
7.2.90.0080.00816.74
7.2.80.0070.00716.82
7.2.70.0000.01517.08
7.2.60.0030.00516.74
7.2.50.0090.00616.81
7.2.40.0060.00617.07
7.2.30.0060.01016.84
7.2.20.0000.01317.03
7.2.10.0030.01016.78
7.2.00.0050.00717.99
7.1.330.0080.00615.84
7.1.320.0000.00915.44
7.1.310.0120.00015.57
7.1.300.0060.00315.43
7.1.290.0040.00715.85
7.1.280.0040.01115.46
7.1.270.0000.01215.65
7.1.260.0000.01115.66
7.1.250.0060.00615.66
7.1.100.0070.00718.10
7.1.70.0000.00816.84
7.1.60.0060.01319.36
7.1.50.0030.00816.47
7.1.00.0100.07022.28
7.0.200.0000.01116.45
7.0.60.0030.05719.92
7.0.50.0100.05017.88
7.0.40.0100.08320.25
7.0.30.0400.06320.09
7.0.20.0330.08320.21
7.0.10.0030.04720.26
7.0.00.0070.04020.32
5.6.280.0000.04721.00
5.6.210.0070.06720.47
5.6.200.0100.04718.27
5.6.190.0070.05020.64
5.6.180.0370.03720.61
5.6.170.0230.07720.50
5.6.160.0100.06320.57
5.6.150.0130.06718.29
5.6.140.0000.04318.28
5.6.130.0070.06718.15
5.6.120.0170.08020.98
5.6.110.0000.09321.14
5.6.100.0070.07021.03
5.6.90.0100.06321.00
5.6.80.0070.08020.34
5.5.350.0200.07720.41
5.5.340.0030.05317.94
5.5.330.0030.05720.31
5.5.320.0000.04320.27
5.5.310.0430.07320.24
5.5.300.0000.04717.95
5.5.290.0000.06318.03
5.5.280.0170.07720.85
5.5.270.0130.03320.76
5.5.260.0000.04320.86
5.5.250.0070.04020.71
5.5.240.0270.06320.05

preferences:
42.67 ms | 400 KiB | 5 Q