3v4l.org

run code in 300+ PHP versions simultaneously
<?php function show_flags ($flags) { if ($flags & 0) { echo "You are P0" + PHP_EOL; } if ($flags & 1) { echo "You are P1" + PHP_EOL; } if ($flags & 2) { echo "You are P2" + PHP_EOL; } if ($flags & 3) { echo "You are P3" + PHP_EOL; } } show_flags( 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.40.0070.00718.72
8.3.30.0120.00318.87
8.3.20.0000.00720.13
8.3.10.0070.00022.08
8.3.00.0050.00323.66
8.2.170.0120.00322.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00419.64
8.2.120.0080.00026.35
8.2.110.0000.00919.45
8.2.100.0000.01117.78
8.2.90.0040.00419.11
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.80
8.2.50.0000.01018.07
8.2.40.0080.00022.33
8.2.30.0030.00319.40
8.2.20.0070.00017.65
8.2.10.0050.00318.05
8.2.00.0040.00418.02
8.1.270.0070.00324.01
8.1.260.0030.00628.09
8.1.250.0000.00828.09
8.1.240.0110.00021.99
8.1.230.0040.00720.97
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0070.00317.13
8.1.180.0000.00818.10
8.1.170.0050.00318.65
8.1.160.0040.00420.54
8.1.150.0040.00418.77
8.1.140.0080.00019.38
8.1.130.0040.00417.52
8.1.120.0040.00417.28
8.1.110.0040.00417.28
8.1.100.0060.00317.37
8.1.90.0040.00417.32
8.1.80.0080.00017.28
8.1.70.0000.00717.32
8.1.60.0080.00017.39
8.1.50.0050.00317.44
8.1.40.0040.00417.32
8.1.30.0030.00617.48
8.1.20.0040.00417.66
8.1.10.0000.00917.45
8.1.00.0030.00617.32
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0070.00018.29
8.0.270.0070.00017.10
8.0.260.0060.00017.09
8.0.250.0070.00016.96
8.0.240.0050.00216.93
8.0.230.0030.00316.92
8.0.220.0040.00416.90
8.0.210.0070.00016.78
8.0.200.0000.00816.93
8.0.190.0030.00316.83
8.0.180.0080.00016.93
8.0.170.0080.00016.82
8.0.160.0030.00316.98
8.0.150.0080.00016.89
8.0.140.0030.00316.76
8.0.130.0030.00313.34
8.0.120.0050.00316.88
8.0.110.0040.00416.85
8.0.100.0000.00816.84
8.0.90.0000.00716.89
8.0.80.0030.01316.89
8.0.70.0040.00416.67
8.0.60.0050.00216.72
8.0.50.0040.00416.89
8.0.30.0070.01217.10
8.0.20.0120.00717.40
8.0.10.0040.00416.81
8.0.00.0110.00916.77
7.4.330.0050.00016.81
7.4.320.0000.00616.31
7.4.300.0050.00216.49
7.4.290.0070.00016.45
7.4.280.0030.00616.50
7.4.270.0040.00416.42
7.4.260.0060.00316.48
7.4.250.0040.00416.41
7.4.240.0000.00716.36
7.4.230.0030.00316.51
7.4.220.0000.02116.30
7.4.210.0090.00616.48
7.4.200.0000.00716.46
7.4.160.0160.00016.49
7.4.150.0090.00917.40
7.4.140.0140.01117.86
7.4.130.0080.01116.46
7.4.120.0070.01316.48
7.4.110.0030.01316.38
7.4.100.0220.00016.28
7.4.90.0090.00916.31
7.4.80.0090.00919.39
7.4.70.0030.01416.42
7.4.60.0110.00716.43
7.4.50.0030.01516.51
7.4.40.0030.01416.60
7.4.30.0140.00916.38
7.4.10.0000.01914.96
7.4.00.0080.00914.83
7.3.330.0000.00513.22
7.3.320.0030.00313.20
7.3.310.0000.00716.46
7.3.300.0000.00716.24
7.3.290.0000.00716.22
7.3.280.0120.00516.35
7.3.270.0130.01317.40
7.3.260.0030.01316.46
7.3.250.0080.01016.47
7.3.240.0090.01116.42
7.3.230.0110.00616.54
7.3.210.0030.01416.28
7.3.200.0080.01519.39
7.3.190.0080.00816.50
7.3.180.0120.00416.52
7.3.170.0110.01116.49
7.3.160.0030.01316.55
7.3.130.0100.00714.78
7.3.120.0070.01014.80
7.3.110.0080.00914.75
7.3.100.0080.00414.97
7.3.90.0040.00814.82
7.3.80.0040.00914.97
7.3.70.0030.01014.80
7.3.60.0020.00814.82
7.3.50.0020.01014.90
7.3.40.0050.00814.75
7.3.30.0060.00914.80
7.3.20.0050.00716.63
7.3.10.0020.01016.59
7.3.00.0060.00716.70
7.2.330.0070.01116.64
7.2.320.0110.01116.66
7.2.310.0090.01216.43
7.2.300.0060.01416.72
7.2.290.0060.01616.45
7.2.260.0040.01414.78
7.2.250.0050.01215.03
7.2.240.0070.00915.13
7.2.230.0050.01114.95
7.2.220.0060.00714.97
7.2.210.0070.00814.91
7.2.200.0020.01114.99
7.2.190.0070.00815.00
7.2.180.0040.00814.89
7.2.170.0040.00915.00
7.2.160.0060.00915.06
7.2.150.0050.01016.80
7.2.140.0030.01016.86
7.2.130.0090.00716.73
7.2.120.0040.00916.60
7.2.110.0070.00616.63
7.2.100.0030.00916.54
7.2.90.0040.00916.81
7.2.80.0060.01016.66
7.2.70.0050.00716.83
7.2.60.0060.00816.77
7.2.50.0060.00816.52
7.2.40.0020.00916.88
7.2.30.0080.00816.79
7.2.20.0110.00816.63
7.2.10.0050.00916.63
7.2.00.0060.00817.48
7.1.330.0070.00515.51
7.1.320.0030.00915.69
7.1.310.0060.00715.59
7.1.300.0080.00815.67
7.1.290.0060.00915.75
7.1.280.0070.00615.73
7.1.270.0060.00915.70
7.1.260.0040.00815.74
7.1.250.0030.01115.46
7.1.240.0090.00015.89
7.1.230.0040.00715.55
7.1.220.0030.00915.75
7.1.210.0000.01215.82
7.1.200.0030.00715.65
7.1.190.0100.00315.70
7.1.180.0060.00615.62
7.1.170.0040.01115.63
7.1.160.0030.00715.70
7.1.150.0120.00315.91
7.1.140.0030.00915.81
7.1.130.0030.00915.59
7.1.120.0040.00815.59
7.1.110.0070.00715.68
7.1.100.0040.00616.93
7.1.90.0090.00315.86
7.1.80.0070.00715.70
7.1.70.0030.00816.46
7.1.60.0060.01017.60
7.1.50.0110.00216.48
7.1.40.0060.00615.50
7.1.30.0090.00315.70
7.1.20.0060.00915.91
7.1.10.0060.00615.63
7.1.00.0060.04119.16
7.0.330.0070.00715.00
7.0.320.0000.01115.30
7.0.310.0120.00015.44
7.0.300.0030.01315.30
7.0.290.0060.00615.46
7.0.280.0100.00315.47
7.0.270.0130.00015.43
7.0.260.0000.01415.46
7.0.250.0000.00815.52
7.0.240.0040.00715.36
7.0.230.0090.00015.47
7.0.220.0070.00315.19
7.0.210.0070.00715.42
7.0.200.0110.00516.09
7.0.190.0000.01515.51
7.0.180.0100.00315.43
7.0.170.0030.00515.23
7.0.160.0090.00315.27
7.0.150.0060.00315.21
7.0.140.0060.00615.47
7.0.130.0000.01315.55
7.0.120.0040.00415.02
7.0.110.0030.01015.40
7.0.100.0090.00015.23
7.0.90.0000.00915.52
7.0.80.0100.00315.29
7.0.70.0060.00315.44
7.0.60.0050.04318.51
7.0.50.0080.04316.53
7.0.40.0080.02516.81
7.0.30.0210.03816.92
7.0.20.0200.03716.86
7.0.10.0060.04816.85
7.0.00.0050.04416.84
5.6.400.0070.00314.09
5.6.390.0110.00314.19
5.6.380.0040.00714.48
5.6.370.0100.00714.09
5.6.360.0000.01514.56
5.6.350.0040.00814.45
5.6.340.0060.00314.30
5.6.330.0060.00614.28
5.6.320.0090.00314.60
5.6.310.0030.01014.18
5.6.300.0100.00313.98
5.6.290.0070.00714.46
5.6.280.0020.03017.72
5.6.270.0040.00814.36
5.6.260.0090.00013.98
5.6.250.0030.00714.20
5.6.240.0000.01414.51
5.6.230.0130.00014.27
5.6.220.0100.00014.34
5.6.210.0100.04317.51
5.6.200.0090.04816.26
5.6.190.0060.04817.42
5.6.180.0260.03517.48
5.6.170.0160.03517.32
5.6.160.0030.02917.52
5.6.150.0090.01716.23
5.6.140.0030.02816.17
5.6.130.0050.04316.24
5.6.120.0040.03017.53
5.6.110.0050.03117.76
5.6.100.0090.02017.67
5.6.90.0050.04917.60
5.6.80.0100.04017.34
5.6.70.0000.01514.23
5.6.60.0030.01014.21
5.6.50.0100.00714.21
5.6.40.0070.00713.97
5.6.30.0080.00614.18
5.6.20.0070.00414.49
5.6.10.0080.00614.18
5.6.00.0000.01414.12
5.5.380.0110.00413.93
5.5.370.0000.00914.52
5.5.360.0040.00813.92
5.5.350.1500.02617.19
5.5.340.0080.03816.21
5.5.330.0030.02817.30
5.5.320.0320.02817.21
5.5.310.0170.03717.18
5.5.300.0100.04316.21
5.5.290.0100.04216.11
5.5.280.0030.03917.46
5.5.270.0040.03417.51
5.5.260.0110.04017.56
5.5.250.0140.03517.28
5.5.240.0080.04317.13
5.5.230.0040.00414.33
5.5.220.0030.01014.12
5.5.210.0040.01114.26
5.5.200.0100.00313.93
5.5.190.0100.00313.83
5.5.180.0030.01014.00
5.5.170.0090.00614.41
5.5.160.0060.00914.20
5.5.150.0060.00914.30
5.5.140.0090.00614.22
5.5.130.0090.00614.07
5.5.120.0030.00914.16
5.5.110.0060.00614.32
5.5.100.0100.00313.91
5.5.90.0030.01013.94
5.5.80.0030.00914.14
5.5.70.0110.00414.00
5.5.60.0090.00614.33
5.5.50.0030.01014.23
5.5.40.0120.00314.12
5.5.30.0110.00414.09
5.5.20.0120.00313.67
5.5.10.0070.00714.22
5.5.00.0080.00414.14

preferences:
51.31 ms | 400 KiB | 5 Q