3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total_width = 1500; $resolutions = [100, 50, 10, 1000]; rsort($resolutions); if ($total_width > $resolutions[0]){ //true foreach($resolutions as $break_point){ if ($total_width <= $break_point){ echo "this will never happen"; } } }

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.0070.00716.50
8.3.50.0130.00522.04
8.3.40.0130.00618.70
8.3.30.0100.00718.89
8.3.20.0040.00420.16
8.3.10.0080.00023.68
8.3.00.0040.00420.95
8.2.180.0140.00416.73
8.2.170.0120.00322.96
8.2.160.0030.01020.52
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0000.00820.86
8.2.110.0060.00322.13
8.2.100.0110.00019.63
8.2.90.0070.00019.34
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0060.00318.05
8.2.50.0030.00618.07
8.2.40.0040.00421.07
8.2.30.0070.00018.21
8.2.20.0080.00017.79
8.2.10.0000.00818.12
8.2.00.0000.00717.55
8.1.280.0070.00725.92
8.1.270.0080.00023.77
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00324.02
8.1.230.0040.00719.15
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0030.00517.13
8.1.180.0000.00818.10
8.1.170.0050.00318.39
8.1.160.0040.00422.04
8.1.150.0040.00418.51
8.1.140.0040.00417.35
8.1.130.0040.00417.73
8.1.120.0040.00417.41
8.1.110.0000.00717.51
8.1.100.0000.00817.45
8.1.90.0070.00017.44
8.1.80.0050.00317.34
8.1.70.0030.00317.29
8.1.60.0040.00417.49
8.1.50.0020.00517.51
8.1.40.0080.00017.50
8.1.30.0030.00517.63
8.1.20.0050.00317.57
8.1.10.0020.00517.58
8.1.00.0040.00417.43
8.0.300.0000.00818.77
8.0.290.0030.00517.18
8.0.280.0000.00718.43
8.0.270.0030.00317.14
8.0.260.0000.00617.29
8.0.250.0030.00316.90
8.0.240.0000.00816.98
8.0.230.0000.00716.84
8.0.220.0080.00016.88
8.0.210.0000.00716.82
8.0.200.0030.00316.90
8.0.190.0000.00716.88
8.0.180.0050.00316.95
8.0.170.0060.00316.89
8.0.160.0080.00016.92
8.0.150.0030.00316.77
8.0.140.0040.00416.85
8.0.130.0060.00013.30
8.0.120.0000.00916.87
8.0.110.0000.00716.93
8.0.100.0040.00416.75
8.0.90.0000.00716.87
8.0.80.0090.00616.84
8.0.70.0040.00416.79
8.0.60.0000.00716.95
8.0.50.0000.00716.90
8.0.30.0120.00717.04
8.0.20.0110.00817.40
8.0.10.0000.00816.96
8.0.00.0110.00816.79
7.4.330.0000.00515.00
7.4.320.0000.00616.46
7.4.300.0060.00016.39
7.4.290.0070.00016.60
7.4.280.0000.00716.39
7.4.270.0070.00016.51
7.4.260.0000.00816.50
7.4.250.0040.00416.55
7.4.240.0040.00516.49
7.4.230.0050.00316.66
7.4.220.0040.01416.61
7.4.210.0050.01016.55
7.4.200.0030.00316.68
7.4.190.0030.00316.49
7.4.160.0120.00316.52
7.4.150.0120.00617.40
7.4.140.0090.01117.86
7.4.130.0150.00116.60
7.4.120.0060.01016.47
7.4.110.0040.01416.57
7.4.100.0120.00916.52
7.4.90.0070.01116.40
7.4.80.0120.00619.39
7.4.70.0070.01016.60
7.4.60.0090.01316.63
7.4.50.0040.00416.50
7.4.40.0100.00716.47
7.4.30.0060.01016.73
7.4.00.0060.01015.06
7.3.330.0060.00013.07
7.3.320.0020.00213.17
7.3.310.0000.00716.11
7.3.300.0050.00216.16
7.3.290.0070.00716.27
7.3.280.0090.01016.30
7.3.270.0100.00617.40
7.3.260.0110.00616.22
7.3.250.0100.00716.47
7.3.240.0100.01016.37
7.3.230.0090.00616.46
7.3.210.0060.01116.46
7.3.200.0120.00919.39
7.3.190.0070.01016.55
7.3.180.0060.01016.36
7.3.170.0160.00016.56
7.3.160.0080.00816.39
7.3.120.0030.01214.87
7.3.110.0140.00314.93
7.3.100.0030.01714.64
7.3.90.0110.00714.88
7.3.80.0060.00915.12
7.3.70.0040.00414.73
7.3.60.0030.00614.92
7.3.50.0060.01214.74
7.3.40.0090.00614.94
7.3.30.0080.00414.79
7.3.20.0060.00616.62
7.3.10.0090.00616.88
7.3.00.0060.00316.60
7.2.330.0070.01016.82
7.2.320.0070.01016.57
7.2.310.0070.01116.68
7.2.300.0090.00916.76
7.2.290.0100.01016.57
7.2.250.0070.01115.04
7.2.240.0100.01015.09
7.2.230.0090.00315.27
7.2.220.0070.00715.15
7.2.210.0120.00315.07
7.2.200.0030.01015.00
7.2.190.0080.00414.83
7.2.180.0060.01015.11
7.2.170.0100.00615.18
7.2.60.0000.01616.71
7.2.00.0030.01019.24
7.1.330.0110.00315.98
7.1.320.0060.00615.65
7.1.310.0000.00915.73
7.1.300.0040.00815.47
7.1.290.0000.01716.01
7.1.280.0060.00915.82
7.1.270.0030.00915.45
7.1.260.0030.01215.61
7.1.200.0000.01215.89
7.1.100.0030.01018.05
7.1.70.0030.00717.09
7.1.60.0130.01019.46
7.1.50.0060.00917.00
7.1.00.0070.07322.46
7.0.200.0000.00916.81
7.0.140.0030.07321.92
7.0.60.0100.07719.88
7.0.50.0100.07017.88
7.0.40.0130.08020.12
7.0.30.0170.04020.13
7.0.20.0330.07320.13
7.0.10.0100.05720.01
7.0.00.0070.08720.01
5.6.280.0000.07321.07
5.6.210.0070.03720.74
5.6.200.0100.05018.17
5.6.190.0100.08320.39
5.6.180.0170.08320.67
5.6.170.0270.08720.48
5.6.160.0070.06320.41
5.6.150.0130.06318.16
5.6.140.0000.04318.15
5.6.130.0100.06318.11
5.6.120.0030.09020.96
5.6.110.0070.06720.99
5.6.100.0070.04721.01
5.6.90.0070.08321.13
5.6.80.0070.08020.47
5.5.350.3030.03020.34
5.5.340.0070.05017.93
5.5.330.0070.08020.57
5.5.320.0430.06320.39
5.5.310.0330.07320.17
5.5.300.0070.07717.91
5.5.290.0030.07717.98
5.5.280.0030.09020.71
5.5.270.0130.04320.76
5.5.260.0070.07020.75
5.5.250.0030.04020.71
5.5.240.0100.06320.16
5.4.450.0100.05321.40
5.4.440.0100.05319.41
5.4.430.0200.04719.13
5.4.420.0330.05019.25
5.4.410.0830.05018.97
5.4.400.0430.03319.16
5.4.390.0270.03719.08
5.4.380.0070.06318.48
5.4.370.0230.05018.62
5.4.360.0100.05318.52
5.4.350.0170.05318.45
5.4.340.0230.04318.59
5.4.320.0080.04212.46
5.4.310.0070.03912.45
5.4.300.0100.04412.45
5.4.290.0070.04712.45
5.4.280.0030.03912.35
5.4.270.0080.03412.35
5.4.260.0100.03812.35
5.4.250.0020.04212.35
5.4.240.0060.03512.35
5.4.230.0090.03712.34
5.4.220.0030.04512.34
5.4.210.0080.03712.34
5.4.200.0030.04512.34
5.4.190.0080.03412.34
5.4.180.0070.03412.34
5.4.170.0130.02812.35
5.4.160.0100.03112.35
5.4.150.0060.03512.34
5.4.140.0100.03912.02
5.4.130.0070.03412.02
5.4.120.0080.03811.97
5.4.110.0050.03611.97
5.4.100.0070.03911.96
5.4.90.0090.03811.97
5.4.80.0110.03611.96
5.4.70.0060.03311.96
5.4.60.0080.03711.96
5.4.50.0100.03911.96
5.4.40.0080.04011.95
5.4.30.0090.03911.95
5.4.20.0120.03711.95
5.4.10.0030.04011.95
5.4.00.0040.04611.44
5.3.290.0080.03812.80
5.3.280.0060.03812.71
5.3.270.0100.03512.73
5.3.260.0060.04012.72
5.3.250.0080.05012.72
5.3.240.0090.04912.72
5.3.230.0060.05012.71
5.3.220.0110.03812.68
5.3.210.0060.04212.68
5.3.200.0050.03812.68
5.3.190.0050.03912.68
5.3.180.0060.03612.67
5.3.170.0050.04012.67
5.3.160.0090.03712.67
5.3.150.0080.04912.67
5.3.140.0080.04812.66
5.3.130.0060.04212.66
5.3.120.0050.04012.66
5.3.110.0110.03512.66
5.3.100.0070.03612.12
5.3.90.0060.03612.09
5.3.80.0070.03512.08
5.3.70.0080.03312.07
5.3.60.0060.04212.06
5.3.50.0070.03912.00
5.3.40.0130.04412.00
5.3.30.0100.04911.95
5.3.20.0080.05011.72
5.3.10.0070.05711.70
5.3.00.0080.05211.68
5.2.170.0050.0469.18
5.2.160.0020.0469.18
5.2.150.0080.0429.18
5.2.140.0070.0439.18
5.2.130.0060.0429.14
5.2.120.0060.0429.14
5.2.110.0070.0399.14
5.2.100.0080.0399.14
5.2.90.0050.0439.14
5.2.80.0080.0419.14
5.2.70.0060.0429.14
5.2.60.0070.0419.09
5.2.50.0050.0449.06
5.2.40.0090.0369.04
5.2.30.0050.0429.02
5.2.20.0080.0379.00
5.2.10.0090.0358.93
5.2.00.0040.0428.78
5.1.60.0030.0378.07
5.1.50.0050.0348.07
5.1.40.0060.0358.05
5.1.30.0050.0368.40
5.1.20.0070.0348.41
5.1.10.0080.0338.14
5.1.00.0070.0368.14
5.0.50.0040.0256.63
5.0.40.0050.0256.48
5.0.30.0050.0366.29
5.0.20.0040.0216.26
5.0.10.0010.0236.24
5.0.00.0050.0316.23
4.4.90.0040.0174.78
4.4.80.0010.0184.75
4.4.70.0050.0214.76
4.4.60.0070.0144.75
4.4.50.0050.0164.77
4.4.40.0080.0314.70
4.4.30.0050.0224.76
4.4.20.0040.0244.84
4.4.10.0040.0224.85
4.4.00.0030.0344.76
4.3.110.0030.0234.67
4.3.100.0050.0204.67
4.3.90.0090.0164.63
4.3.80.0040.0334.59
4.3.70.0060.0214.63
4.3.60.0020.0234.63
4.3.50.0050.0204.63
4.3.40.0050.0314.54
4.3.30.0010.0243.29
4.3.20.0010.0223.25
4.3.10.0060.0193.22
4.3.00.0030.01714.33

preferences:
37.73 ms | 401 KiB | 5 Q