3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newsPiece['pages'] = 'A13'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?> <?php $newsPiece['pages'] = '15-38'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?> <?php $newsPiece['pages'] = '15B'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?> <?php $newsPiece['pages'] = 'A15B'; if ((int)$newsPiece['pages']):?> <?php echo $newsPiece['pages']?><?php endif;?>

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.01418.30
8.3.50.0250.00521.98
8.3.40.0040.01118.97
8.3.30.0070.00719.21
8.3.20.0040.00420.46
8.3.10.0040.00421.83
8.3.00.0040.00422.56
8.2.180.0070.01016.50
8.2.170.0040.01122.96
8.2.160.0070.00721.02
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00417.63
8.2.110.0080.00022.25
8.2.100.0070.00417.91
8.2.90.0030.00619.17
8.2.80.0030.00519.79
8.2.70.0050.00517.59
8.2.60.0040.00418.16
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0000.00718.13
8.2.20.0040.00417.63
8.2.10.0050.00317.62
8.2.00.0060.00317.73
8.1.280.0100.00725.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0070.01128.09
8.1.240.0060.00323.70
8.1.230.0000.01119.15
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0080.00017.23
8.1.190.0050.00317.53
8.1.180.0080.00018.10
8.1.170.0050.00318.46
8.1.160.0040.00422.00
8.1.150.0000.00718.42
8.1.140.0000.00717.34
8.1.130.0040.00417.72
8.1.120.0030.00517.34
8.1.110.0070.00017.22
8.1.100.0000.00717.36
8.1.90.0040.00317.39
8.1.80.0040.00417.39
8.1.70.0060.00017.40
8.1.60.0050.00317.45
8.1.50.0030.00517.49
8.1.40.0000.00817.44
8.1.30.0050.00317.55
8.1.20.0040.00417.42
8.1.10.0040.00417.50
8.1.00.0050.00317.41
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0030.00318.39
8.0.270.0030.00317.19
8.0.260.0060.00016.67
8.0.250.0000.00616.80
8.0.240.0070.00016.89
8.0.230.0070.00016.83
8.0.220.0030.00316.73
8.0.210.0000.00716.70
8.0.200.0040.00416.72
8.0.190.0000.00716.89
8.0.180.0000.00716.63
8.0.170.0040.00416.76
8.0.160.0030.00316.75
8.0.150.0000.00716.75
8.0.140.0040.00416.62
8.0.130.0060.00013.11
8.0.120.0060.00316.73
8.0.110.0000.00816.66
8.0.100.0040.00416.73
8.0.90.0070.00016.66
8.0.80.0100.00716.70
8.0.70.0040.00416.64
8.0.60.0000.00716.66
8.0.50.0000.00716.79
8.0.30.0070.01217.05
8.0.20.0110.00817.40
8.0.10.0000.00816.96
8.0.00.0100.00816.82
7.4.330.0000.00615.20
7.4.320.0060.00016.46
7.4.300.0060.00016.36
7.4.290.0060.00016.58
7.4.280.0050.00316.42
7.4.270.0000.00816.61
7.4.260.0090.00016.50
7.4.250.0040.00416.43
7.4.240.0030.00416.53
7.4.230.0000.00716.70
7.4.220.0090.00916.46
7.4.210.0070.01016.45
7.4.200.0030.00316.59
7.4.190.0030.00316.73
7.4.160.0140.00616.38
7.4.150.0090.01017.40
7.4.140.0090.00817.86
7.4.130.0090.01216.44
7.4.120.0130.00516.46
7.4.110.0100.00716.51
7.4.100.0090.01216.52
7.4.90.0110.00716.57
7.4.80.0080.01219.39
7.4.70.0100.00616.55
7.4.60.0100.00716.47
7.4.50.0030.00516.34
7.4.40.0060.00922.77
7.4.30.0070.01016.58
7.4.00.0100.00315.14
7.3.330.0000.00512.97
7.3.320.0000.00513.03
7.3.310.0070.00016.40
7.3.300.0070.00016.25
7.3.290.0040.00416.27
7.3.280.0080.00816.28
7.3.270.0160.00917.40
7.3.260.0100.00816.28
7.3.250.0060.01116.41
7.3.240.0140.00616.38
7.3.230.0060.01016.57
7.3.210.0130.00316.50
7.3.200.0060.01619.39
7.3.190.0090.01216.31
7.3.180.0110.01116.36
7.3.170.0100.00616.44
7.3.160.0060.01016.28
7.3.120.0100.00715.08
7.3.10.0040.00816.24
7.3.00.0090.00316.41
7.2.330.0080.01216.65
7.2.320.0120.01316.64
7.2.310.0130.00316.32
7.2.300.0140.00916.70
7.2.290.0090.00916.74
7.2.130.0070.01116.34
7.2.120.0000.01316.50
7.2.110.0030.00716.47
7.2.100.0070.01016.82
7.2.90.0040.01116.55
7.2.80.0100.00316.71
7.2.70.0140.00316.47
7.2.60.0060.00716.75
7.2.50.0080.01616.45
7.2.40.0110.00516.94
7.2.30.0000.01116.84
7.2.20.0130.00316.66
7.2.10.0080.00816.47
7.2.00.0110.00718.09
7.1.250.0030.01015.24
7.1.200.0080.00615.81
7.1.100.0030.00618.21
7.1.70.0070.00416.71
7.1.60.0180.00719.82
7.1.50.0100.00717.02
7.1.00.0030.07722.46
7.0.200.0110.00316.56
7.0.140.0030.07321.90
7.0.60.0130.07720.04
7.0.50.0100.06317.86
7.0.40.0070.08720.12
7.0.30.0330.07320.09
7.0.20.0230.07020.16
7.0.10.0200.04320.16
7.0.00.0030.04320.08
5.6.280.0070.06720.93
5.6.210.0170.05020.52
5.6.200.0100.07718.11
5.6.190.0070.09320.67
5.6.180.3230.03720.49
5.6.170.0130.05020.49
5.6.160.0170.07020.38
5.6.150.0170.06718.18
5.6.140.0070.04718.21
5.6.130.0030.04318.16
5.6.120.0070.03720.99
5.6.110.0130.07721.03
5.6.100.0070.04021.04
5.6.90.0030.04021.10
5.6.80.0170.07020.53
5.6.70.0600.05320.49
5.5.350.0000.08720.30
5.5.340.0130.07017.92
5.5.330.0070.08320.40
5.5.320.0270.07020.18
5.5.310.0330.05720.18
5.5.300.0000.04317.91
5.5.290.0030.05017.91
5.5.280.0030.04720.68
5.5.270.0070.08020.67
5.5.260.0000.08320.88
5.5.250.0170.03020.70
5.5.240.0170.07020.23
5.4.450.0370.03019.26
5.4.440.0200.03319.48
5.4.430.0200.04319.41
5.4.420.0100.04319.25
5.4.410.0130.03019.29
5.4.400.0100.05318.55
5.4.390.0170.04718.70
5.4.380.0300.05018.52
5.4.370.0330.03318.68
5.4.360.0200.04718.73
5.4.350.0130.05718.59
5.4.340.0070.06018.50
5.4.320.0070.03712.45
5.4.310.0070.04112.45
5.4.300.0040.04512.45
5.4.290.0050.03812.45
5.4.280.0080.04312.35
5.4.270.0170.04718.98
5.4.260.0000.07318.97
5.4.250.0170.07019.02
5.4.240.0070.07019.05
5.4.230.0100.06318.89
5.4.220.0200.05318.75
5.4.210.0070.06319.14
5.4.200.0030.06018.95
5.4.190.0070.05719.16
5.4.180.0100.07018.95
5.4.170.0100.05719.05
5.4.160.0270.05718.95
5.4.150.0070.06019.04
5.4.140.0100.05716.37
5.4.130.0130.07016.26
5.4.120.0170.04316.38
5.4.110.0170.06316.50
5.4.100.0130.05316.36
5.4.90.0070.06016.39
5.4.80.0130.06016.43
5.4.70.0170.06316.48
5.4.60.0170.04316.41
5.4.50.0130.04716.56
5.4.40.0070.05316.43
5.4.30.0030.05316.26
5.4.20.0070.06316.60
5.4.10.0100.07716.30
5.4.00.0200.06715.81
5.3.290.0060.04612.80
5.3.280.0170.06714.68
5.3.270.0130.05714.59
5.3.260.0230.06714.76
5.3.250.0070.06014.77
5.3.240.0100.05314.58
5.3.230.0070.05314.58
5.3.220.0170.05314.61
5.3.210.0100.07314.49
5.3.200.0170.04314.73
5.3.190.0130.07014.55
5.3.180.0230.05014.73
5.3.170.0200.04714.70
5.3.160.0070.05314.49
5.3.150.0100.06314.70
5.3.140.0130.04714.69
5.3.130.0100.05314.66
5.3.120.0070.07714.74
5.3.110.0100.06314.63
5.3.100.0100.07014.18
5.3.90.0170.06314.16
5.3.80.0200.05714.02
5.3.70.0170.04314.07
5.3.60.0170.05713.98
5.3.50.0130.05014.14
5.3.40.0230.05013.76
5.3.30.0170.04314.02
5.3.20.0100.05313.86
5.3.10.0130.05313.58
5.3.00.0170.06013.79
5.2.170.0100.04011.36
5.2.160.0030.06011.34
5.2.150.0100.05711.13
5.2.140.0230.03311.24
5.2.130.0100.04311.15
5.2.120.0170.03311.02
5.2.110.0130.04011.20
5.2.100.0100.05311.21
5.2.90.0000.07011.11
5.2.80.0070.04311.21
5.2.70.0130.04011.15
5.2.60.0070.04311.20
5.2.50.0170.03311.00
5.2.40.0130.04011.19
5.2.30.0130.04711.18
5.2.20.0070.05710.89
5.2.10.0030.05311.05
5.2.00.0100.03710.94
5.1.60.0100.03310.18
5.1.50.0100.03010.07
5.1.40.0030.0409.87
5.1.30.0070.05010.38
5.1.20.0100.03310.23
5.1.10.0100.05010.11
5.1.00.0030.04710.26
5.0.50.0070.0308.70
5.0.40.0000.0308.55
5.0.30.0030.0408.21
5.0.20.0000.0338.27
5.0.10.0000.0308.31
5.0.00.0070.0378.44
4.4.90.0070.0179.85
4.4.80.0030.0309.85
4.4.70.0030.0237.93
4.4.60.0100.0237.93
4.4.50.0030.0237.93
4.4.40.0030.0407.93
4.4.30.0030.0307.93
4.4.20.0030.0307.93
4.4.10.0030.0277.56
4.4.00.0100.0377.46
4.3.110.0100.0207.46
4.3.100.0070.0277.46
4.3.90.0030.0207.46
4.3.80.0030.0407.46
4.3.70.0030.0277.46
4.3.60.0030.0237.46
4.3.50.0100.0237.46
4.3.40.0070.0377.46
4.3.30.0000.0237.46
4.3.20.0030.0237.46
4.3.10.0030.0277.46
4.3.00.0030.01315.59

preferences:
44.32 ms | 401 KiB | 5 Q