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;?>

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.0120.00318.43
8.3.50.0130.00421.95
8.3.40.0090.00918.83
8.3.30.0070.00719.13
8.3.20.0040.00420.21
8.3.10.0040.00422.12
8.3.00.0110.00722.31
8.2.180.0100.00716.75
8.2.170.0070.01022.96
8.2.160.0140.00020.94
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0080.00019.48
8.2.110.0030.00620.96
8.2.100.0090.00317.91
8.2.90.0060.00319.37
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0030.00618.10
8.2.40.0040.00418.22
8.2.30.0050.00318.18
8.2.20.0080.00017.59
8.2.10.0040.00417.55
8.2.00.0040.00417.79
8.1.280.0040.01125.92
8.1.270.0060.00322.19
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.14
8.1.230.0040.00717.64
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00318.46
8.1.160.0000.00721.91
8.1.150.0000.00718.51
8.1.140.0040.00417.38
8.1.130.0080.00017.75
8.1.120.0040.00417.31
8.1.110.0040.00417.31
8.1.100.0000.00717.40
8.1.90.0040.00417.39
8.1.80.0000.00717.29
8.1.70.0030.00317.33
8.1.60.0000.00917.55
8.1.50.0050.00317.47
8.1.40.0030.00617.45
8.1.30.0040.00417.59
8.1.20.0050.00317.55
8.1.10.0000.00817.55
8.1.00.0000.00717.33
8.0.300.0070.00018.77
8.0.290.0050.00316.63
8.0.280.0030.00318.42
8.0.270.0050.00317.13
8.0.260.0060.00016.80
8.0.250.0060.00016.79
8.0.240.0000.00716.91
8.0.230.0040.00416.71
8.0.220.0030.00316.76
8.0.210.0000.00616.65
8.0.200.0000.00616.69
8.0.190.0060.00316.78
8.0.180.0040.00816.82
8.0.170.0030.00616.69
8.0.160.0020.00516.82
8.0.150.0000.00716.55
8.0.140.0030.00316.74
8.0.130.0030.00313.22
8.0.120.0070.00016.75
8.0.110.0000.00716.73
8.0.100.0000.00716.77
8.0.90.0040.00416.62
8.0.80.0030.01316.82
8.0.70.0000.00716.71
8.0.60.0040.00416.59
8.0.50.0080.00016.72
8.0.30.0120.01116.88
8.0.20.0130.00517.40
8.0.10.0000.00816.82
8.0.00.0110.00816.73
7.4.330.0060.00015.09
7.4.320.0000.00816.60
7.4.300.0030.00316.50
7.4.290.0000.00716.52
7.4.280.0030.00316.62
7.4.270.0040.00416.59
7.4.260.0040.00416.51
7.4.250.0050.00216.55
7.4.240.0040.00416.53
7.4.230.0030.00316.41
7.4.220.0150.00916.55
7.4.210.0080.00916.51
7.4.200.0000.00716.40
7.4.190.0070.00016.47
7.4.160.0040.01316.70
7.4.150.0170.00717.40
7.4.140.0070.01217.86
7.4.130.0080.01216.46
7.4.120.0100.00816.56
7.4.110.0100.01016.40
7.4.100.0060.01316.52
7.4.90.0140.00316.46
7.4.80.0090.00919.39
7.4.70.0130.00316.61
7.4.60.0120.00916.36
7.4.50.0040.00016.21
7.4.40.0060.00922.77
7.4.30.0140.00316.57
7.4.00.0070.00715.03
7.3.330.0020.00213.04
7.3.320.0030.00313.23
7.3.310.0030.00316.39
7.3.300.0060.00016.11
7.3.290.0030.01016.26
7.3.280.0090.00816.28
7.3.270.0120.00617.40
7.3.260.0000.01716.31
7.3.250.0070.01016.33
7.3.240.0030.01316.50
7.3.230.0130.00316.39
7.3.210.0080.00816.29
7.3.200.0100.00619.39
7.3.190.0060.01016.39
7.3.180.0100.00616.21
7.3.170.0120.00916.36
7.3.160.0130.00316.24
7.3.120.0000.01114.85
7.2.330.0120.00616.68
7.2.320.0090.00916.43
7.2.310.0030.01316.52
7.2.300.0100.00716.55
7.2.290.0060.00916.70
7.2.60.0000.01516.61
7.2.00.0090.00919.32
7.1.200.0030.00915.87
7.1.100.0090.00018.08
7.1.70.0000.00816.96
7.1.60.0170.00719.82
7.1.50.0100.01016.93
7.1.00.0000.07722.30
7.0.200.0130.00016.73
7.0.140.0100.06722.04
7.0.60.0130.06319.91
7.0.50.0030.04017.81
7.0.40.0100.06720.40
7.0.30.0300.05720.17
7.0.20.0200.03720.18
7.0.10.0000.04720.12
7.0.00.0070.09020.08
5.6.280.0030.07320.91
5.6.210.0130.06720.75
5.6.200.0000.05318.19
5.6.190.0070.08320.34
5.6.180.0030.07020.49
5.6.170.0200.05720.50
5.6.160.0070.05320.52
5.6.150.0130.08018.22
5.6.140.0070.03318.22
5.6.130.0030.04318.15
5.6.120.0100.08321.04
5.6.110.0030.07321.11
5.6.100.0130.07721.02
5.6.90.0130.04021.10
5.6.80.0030.08720.43
5.5.350.0030.07720.32
5.5.340.0030.08017.99
5.5.330.0200.04020.14
5.5.320.0270.07720.20
5.5.310.0400.05320.50
5.5.300.0030.04717.96
5.5.290.0100.05718.02
5.5.280.0030.09020.89
5.5.270.0100.08320.64
5.5.260.0100.07720.86
5.5.250.0100.03320.61
5.5.240.0030.07020.11
5.4.450.0730.06319.48
5.4.440.0770.05019.44
5.4.430.0200.04319.52
5.4.420.0030.06319.51
5.4.410.0270.04318.96
5.4.400.0100.05318.70
5.4.390.0170.04718.50
5.4.380.0100.05318.70
5.4.370.0070.06018.42
5.4.360.0070.06318.47
5.4.350.0100.06018.75
5.4.340.0200.05018.66
5.4.320.0090.03612.46
5.4.310.0080.04012.45
5.4.300.0080.03512.45
5.4.290.0110.03912.45
5.4.280.0090.04212.35
5.4.270.0130.04718.96
5.4.260.0070.05318.91
5.4.250.0030.05718.81
5.4.240.0100.05018.96
5.4.230.0100.05018.77
5.4.220.0130.05318.82
5.4.210.0000.06018.81
5.4.200.0230.06319.04
5.4.190.0130.05718.95
5.4.180.0100.04719.04
5.4.170.0000.06019.13
5.4.160.0030.05718.93
5.4.150.0070.06018.82
5.4.140.0070.05016.52
5.4.130.0100.05016.61
5.4.120.0030.05716.54
5.4.110.0100.05016.55
5.4.100.0200.04016.38
5.4.90.0030.05716.54
5.4.80.0100.05316.35
5.4.70.0130.05016.30
5.4.60.0070.05016.30
5.4.50.0200.05016.44
5.4.40.0170.05316.43
5.4.30.0100.06016.43
5.4.20.0070.05016.28
5.4.10.0070.05316.45
5.4.00.0070.05315.89
5.3.290.0090.04212.80
5.3.280.0030.05714.79
5.3.270.0030.05714.41
5.3.260.0030.05714.80
5.3.250.0170.06714.64
5.3.240.0070.06314.73
5.3.230.0100.04714.74
5.3.220.0130.04314.72
5.3.210.0170.04714.38
5.3.200.0030.08314.70
5.3.190.0070.05314.52
5.3.180.0070.05014.39
5.3.170.0030.05314.56
5.3.160.0070.05314.75
5.3.150.0100.05314.60
5.3.140.0230.06314.54
5.3.130.0130.05014.50
5.3.120.0130.04714.53
5.3.110.0000.06014.70
5.3.100.0070.06013.85
5.3.90.0030.07713.94
5.3.80.0000.05714.00
5.3.70.0100.06314.10
5.3.60.0100.04714.05
5.3.50.0070.05014.15
5.3.40.0130.04313.93
5.3.30.0070.06314.11
5.3.20.0030.05013.77
5.3.10.0030.07013.64
5.3.00.0130.04313.80
5.2.170.0070.05711.34
5.2.160.0070.04011.29
5.2.150.0070.04010.95
5.2.140.0030.04311.36
5.2.130.0100.03711.31
5.2.120.0000.04311.22
5.2.110.0030.04011.14
5.2.100.0070.04311.14
5.2.90.0030.04711.33
5.2.80.0070.04011.28
5.2.70.0070.04710.90
5.2.60.0030.05711.04
5.2.50.0030.04311.24
5.2.40.0030.04310.98
5.2.30.0130.04010.78
5.2.20.0070.04011.15
5.2.10.0130.04310.85
5.2.00.0100.04010.91
5.1.60.0000.0379.98
5.1.50.0100.03310.19
5.1.40.0000.04010.25
5.1.30.0100.05010.18
5.1.20.0130.03010.52
5.1.10.0030.04710.27
5.1.00.0070.03310.14
5.0.50.0030.0378.75
5.0.40.0070.0238.49
5.0.30.0070.0408.36
5.0.20.0030.0308.27
5.0.10.0130.0238.25
5.0.00.0070.0408.36
4.4.90.0030.0207.43
4.4.80.0070.0177.43
4.4.70.0100.0137.43
4.4.60.0100.0137.43
4.4.50.0070.0237.43
4.4.40.0000.0377.43
4.4.30.0030.0207.43
4.4.20.0000.0277.43
4.4.10.0100.0237.43
4.4.00.0030.0407.43
4.3.110.0030.0307.43
4.3.100.0000.0237.43
4.3.90.0130.0137.43
4.3.80.0000.0337.43
4.3.70.0030.0307.43
4.3.60.0000.0237.43
4.3.50.0070.0237.43
4.3.40.0070.0307.43
4.3.30.0000.0277.43
4.3.20.0070.0177.43
4.3.10.0000.0237.43
4.3.00.0130.0206.61

preferences:
45.87 ms | 401 KiB | 5 Q