3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newsPiece['pages'] = '15A'; 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.0000.01518.30
8.3.50.0150.00822.00
8.3.40.0100.01018.91
8.3.30.0090.00618.92
8.3.20.0040.00420.20
8.3.10.0080.00022.07
8.3.00.0040.00422.24
8.2.180.0110.00416.63
8.2.170.0110.00422.96
8.2.160.0100.01020.73
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.88
8.2.110.0100.00022.21
8.2.100.0080.00419.64
8.2.90.0000.00719.18
8.2.80.0030.00519.79
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0080.00018.20
8.2.30.0070.00017.99
8.2.20.0080.00017.70
8.2.10.0040.00417.67
8.2.00.0000.00717.61
8.1.280.0140.00425.92
8.1.270.0060.00322.04
8.1.260.0080.00026.35
8.1.250.0110.00728.09
8.1.240.0040.00423.74
8.1.230.0080.00319.14
8.1.220.0000.00817.77
8.1.210.0090.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.53
8.1.180.0080.00018.10
8.1.170.0040.00418.51
8.1.160.0040.00421.95
8.1.150.0030.00618.52
8.1.140.0040.00417.29
8.1.130.0000.00717.80
8.1.120.0000.00817.41
8.1.110.0000.00817.20
8.1.100.0040.00317.43
8.1.90.0070.00017.38
8.1.80.0040.00417.43
8.1.70.0000.00717.37
8.1.60.0030.00517.47
8.1.50.0050.00217.48
8.1.40.0000.00717.38
8.1.30.0000.00817.54
8.1.20.0040.00417.55
8.1.10.0040.00417.41
8.1.00.0060.00317.33
8.0.300.0040.00418.77
8.0.290.0000.00817.04
8.0.280.0030.00318.26
8.0.270.0030.00317.94
8.0.260.0060.00016.75
8.0.250.0000.00716.81
8.0.240.0000.00816.88
8.0.230.0000.00716.80
8.0.220.0030.00316.75
8.0.210.0000.00716.73
8.0.200.0040.00416.68
8.0.190.0040.00416.83
8.0.180.0030.00416.63
8.0.170.0000.00916.82
8.0.160.0050.00216.61
8.0.150.0040.00416.71
8.0.140.0030.00316.74
8.0.130.0030.00313.17
8.0.120.0000.00816.70
8.0.110.0000.00716.76
8.0.100.0040.00416.80
8.0.90.0000.00716.77
8.0.80.0040.01116.81
8.0.70.0000.00716.66
8.0.60.0030.00516.88
8.0.50.0030.00516.58
8.0.30.0060.01316.73
8.0.20.0110.00917.40
8.0.10.0080.00016.98
8.0.00.0090.01216.80
7.4.330.0020.00215.02
7.4.320.0040.00416.53
7.4.300.0060.00016.56
7.4.290.0030.00316.48
7.4.280.0040.00416.48
7.4.270.0060.00016.60
7.4.260.0030.00716.51
7.4.250.0040.00416.46
7.4.240.0030.00316.57
7.4.230.0000.00716.60
7.4.220.0070.01116.61
7.4.210.0060.00816.55
7.4.200.0030.00316.62
7.4.190.0000.00716.66
7.4.160.0090.00616.56
7.4.150.0060.01217.40
7.4.140.0100.00717.86
7.4.130.0140.00916.51
7.4.120.0070.00916.58
7.4.110.0100.00716.39
7.4.100.0110.00716.50
7.4.90.0090.00916.50
7.4.80.0180.00619.39
7.4.70.0110.00816.54
7.4.60.0100.00816.56
7.4.50.0040.00416.39
7.4.40.0030.01322.77
7.4.30.0060.01016.52
7.4.00.0070.00915.07
7.3.330.0000.00513.14
7.3.320.0020.00213.00
7.3.310.0040.00416.36
7.3.300.0070.00016.17
7.3.290.0110.00316.22
7.3.280.0120.00516.26
7.3.270.0110.00717.40
7.3.260.0100.00616.25
7.3.250.0090.01016.33
7.3.240.0080.01416.29
7.3.230.0070.01116.39
7.3.210.0080.01216.25
7.3.200.0040.01219.39
7.3.190.0130.00316.50
7.3.180.0060.01016.27
7.3.170.0090.00616.27
7.3.160.0070.01016.44
7.3.120.0070.00814.76
7.3.110.0060.01214.88
7.3.100.0140.00014.96
7.3.90.0030.01214.87
7.3.80.0000.01214.92
7.3.70.0000.01314.56
7.3.60.0030.01215.02
7.3.50.0030.01014.27
7.3.40.0100.00014.89
7.3.30.0100.00314.77
7.3.20.0040.01116.59
7.3.10.0060.00616.65
7.3.00.0030.00916.40
7.2.330.0110.00716.71
7.2.320.0130.01216.62
7.2.310.0120.00416.72
7.2.300.0110.01116.69
7.2.290.0180.00416.69
7.2.250.0070.01314.70
7.2.240.0100.00714.80
7.2.230.0110.00514.78
7.2.220.0030.01015.22
7.2.210.0060.00614.92
7.2.200.0060.01014.88
7.2.190.0130.00314.81
7.2.180.0030.01314.73
7.2.170.0000.01015.18
7.2.00.0060.01319.50
7.1.330.0040.01115.75
7.1.320.0030.00815.55
7.1.310.0070.00715.67
7.1.300.0080.00415.77
7.1.290.0040.00715.69
7.1.280.0000.01215.73
7.1.270.0000.01315.73
7.1.260.0050.00515.77
7.1.100.0090.00617.95
7.1.70.0040.00716.98
7.1.60.0140.01119.82
7.1.50.0060.00917.03
7.1.00.0070.07322.40
7.0.200.0090.00316.46
7.0.140.0000.07721.97
7.0.60.0130.06720.00
7.0.50.0030.04017.77
7.0.40.0100.07719.96
7.0.30.0270.04320.13
7.0.20.0270.05320.00
7.0.10.0300.07320.33
7.0.00.0000.05019.99
5.6.280.0030.07321.13
5.6.210.0170.06720.52
5.6.200.0170.07718.21
5.6.190.0000.09020.65
5.6.180.3430.04020.60
5.6.170.0230.06020.39
5.6.160.0100.07320.51
5.6.150.0070.08718.11
5.6.140.0070.08318.09
5.6.130.0100.07318.12
5.6.120.0000.04321.13
5.6.110.0100.07721.13
5.6.100.0030.07320.88
5.6.90.0070.04021.10
5.6.80.0070.07720.35
5.6.70.0300.06020.41
5.5.350.0000.08020.46
5.5.340.0100.08017.91
5.5.330.0000.09720.37
5.5.320.0270.04320.23
5.5.310.0270.08320.51
5.5.300.0000.04317.91
5.5.290.0100.08318.01
5.5.280.0000.04720.77
5.5.270.0100.08320.84
5.5.260.0100.04720.89
5.5.250.0070.08720.71
5.5.240.0100.07720.18
5.4.450.0330.04019.26
5.4.440.0300.04319.57
5.4.430.0130.04719.41
5.4.420.0130.04319.57
5.4.410.0270.04019.30
5.4.400.0030.06018.48
5.4.390.0130.05018.53
5.4.380.0200.06018.77
5.4.370.0130.05318.45
5.4.360.0200.04718.66
5.4.350.0200.04718.70
5.4.340.0230.04318.71
5.4.320.0080.03812.46
5.4.310.0020.04412.46
5.4.300.0080.04012.46
5.4.290.0110.04512.45
5.4.280.0070.03712.35
5.4.270.0070.06318.95
5.4.260.0130.04719.11
5.4.250.0070.06018.71
5.4.240.0100.05318.91
5.4.230.0030.06018.99
5.4.220.0200.04318.96
5.4.210.0130.04718.90
5.4.200.0030.05718.82
5.4.190.0070.08018.99
5.4.180.0100.05718.82
5.4.170.0130.05018.82
5.4.160.0100.07018.91
5.4.150.0170.06018.68
5.4.140.0200.05016.54
5.4.130.0070.06316.53
5.4.120.0200.04016.51
5.4.110.0170.04316.53
5.4.100.0100.05016.61
5.4.90.0200.03716.53
5.4.80.0200.04716.51
5.4.70.0200.04716.28
5.4.60.0270.05016.42
5.4.50.0130.06316.48
5.4.40.0170.04016.54
5.4.30.0130.05016.41
5.4.20.0070.05016.43
5.4.10.0170.05316.42
5.4.00.0100.05016.02
5.3.290.0060.06012.80
5.3.280.0170.04714.64
5.3.270.0170.05014.59
5.3.260.0070.07714.69
5.3.250.0130.04714.80
5.3.240.0170.06314.77
5.3.230.0200.06014.73
5.3.220.0100.05314.55
5.3.210.0030.06014.63
5.3.200.0070.06714.68
5.3.190.0100.07014.68
5.3.180.0100.06014.65
5.3.170.0130.04714.73
5.3.160.0070.07314.73
5.3.150.0000.08014.68
5.3.140.0130.06014.61
5.3.130.0070.07714.52
5.3.120.0170.07314.48
5.3.110.0030.06014.61
5.3.100.0070.06714.08
5.3.90.0130.06313.94
5.3.80.0100.05713.83
5.3.70.0100.06313.82
5.3.60.0070.05314.06
5.3.50.0100.04714.12
5.3.40.0100.05713.94
5.3.30.0100.05014.10
5.3.20.0130.05013.84
5.3.10.0030.05713.81
5.3.00.0100.05713.62
5.2.170.0030.05311.07
5.2.160.0000.05011.25
5.2.150.0030.04711.13
5.2.140.0070.05311.36
5.2.130.0130.04311.08
5.2.120.0030.04311.25
5.2.110.0070.04711.08
5.2.100.0100.03711.02
5.2.90.0070.04710.91
5.2.80.0100.05311.23
5.2.70.0070.05011.07
5.2.60.0000.05010.97
5.2.50.0130.03711.17
5.2.40.0070.04011.15
5.2.30.0070.05010.95
5.2.20.0100.04011.17
5.2.10.0100.05011.18
5.2.00.0070.04710.77
5.1.60.0030.05010.11
5.1.50.0070.0409.98
5.1.40.0000.0579.96
5.1.30.0070.03710.47
5.1.20.0100.03310.40
5.1.10.0030.05010.29
5.1.00.0070.03310.26
5.0.50.0100.0338.77
5.0.40.0130.0308.43
5.0.30.0000.0508.34
5.0.20.0000.0408.41
5.0.10.0000.0338.04
5.0.00.0070.0508.21
4.4.90.0070.0237.42
4.4.80.0030.0237.42
4.4.70.0000.0237.42
4.4.60.0070.0277.42
4.4.50.0030.0277.42
4.4.40.0000.0377.42
4.4.30.0030.0277.42
4.4.20.0130.0207.42
4.4.10.0070.0277.42
4.4.00.0070.0337.42
4.3.110.0100.0207.42
4.3.100.0030.0307.42
4.3.90.0070.0237.42
4.3.80.0070.0307.42
4.3.70.0000.0307.42
4.3.60.0070.0177.42
4.3.50.0000.0307.42
4.3.40.0170.0307.42
4.3.30.0000.0307.42
4.3.20.0000.0277.42
4.3.10.0070.0207.42
4.3.00.0030.01715.59

preferences:
37.97 ms | 401 KiB | 5 Q