3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newsPiece['pages'] = '15B'; 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;?>

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.0100.00718.92
8.3.30.0070.00718.84
8.3.20.0120.00318.90
8.3.10.0060.00320.45
8.3.00.0040.00419.25
8.2.170.0120.00322.96
8.2.160.0140.00021.19
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00819.36
8.2.110.0030.00619.30
8.2.100.0060.00617.84
8.2.90.0050.00319.26
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00417.91
8.2.50.0000.00818.10
8.2.40.0040.00417.97
8.2.30.0040.00418.00
8.2.20.0040.00417.64
8.2.10.0040.00417.63
8.2.00.0030.00817.73
8.1.270.0040.00424.66
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0000.01023.92
8.1.230.0040.00717.83
8.1.220.0000.00817.77
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0040.00418.77
8.1.160.0000.00718.81
8.1.150.0000.00818.39
8.1.140.0000.00817.31
8.1.130.0030.00317.75
8.1.120.0030.00317.33
8.1.110.0000.00717.34
8.1.100.0000.00717.35
8.1.90.0040.00417.46
8.1.80.0000.00817.32
8.1.70.0030.00317.35
8.1.60.0060.00317.51
8.1.50.0030.00617.46
8.1.40.0040.00417.51
8.1.30.0060.00317.48
8.1.20.0040.00417.55
8.1.10.0040.00417.40
8.1.00.0040.00417.32
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.39
8.0.270.0050.00217.11
8.0.260.0000.00716.80
8.0.250.0000.00716.93
8.0.240.0030.00616.78
8.0.230.0000.00716.90
8.0.220.0030.00316.64
8.0.210.0040.00416.75
8.0.200.0060.00016.84
8.0.190.0080.00016.85
8.0.180.0030.00316.70
8.0.170.0080.00016.78
8.0.160.0030.00316.82
8.0.150.0070.00316.60
8.0.140.0000.00716.73
8.0.130.0030.00313.15
8.0.120.0040.00416.78
8.0.110.0000.00716.80
8.0.100.0000.00816.71
8.0.90.0040.00416.82
8.0.80.0090.00616.75
8.0.70.0070.00016.75
8.0.60.0040.00416.62
8.0.50.0040.00416.66
8.0.30.0110.00717.17
8.0.20.0080.01017.04
8.0.10.0030.00316.82
8.0.00.0090.00916.61
7.4.330.0000.00513.10
7.4.320.0030.00316.61
7.4.300.0060.00016.48
7.4.290.0050.00316.55
7.4.280.0030.00516.55
7.4.270.0000.00616.56
7.4.260.0000.00513.30
7.4.250.0080.00016.61
7.4.240.0040.00416.60
7.4.230.0020.00516.57
7.4.220.0140.00416.42
7.4.210.0070.00816.55
7.4.200.0030.00316.70
7.4.190.0000.00716.57
7.4.160.0150.00616.44
7.4.150.0160.00616.40
7.4.140.0090.00916.64
7.4.130.0130.00616.51
7.4.120.0080.01016.55
7.4.110.0170.00016.55
7.4.100.0080.00816.48
7.4.90.0110.00816.56
7.4.80.0100.00619.39
7.4.70.0030.01416.52
7.4.60.0100.00516.46
7.4.50.0030.00316.40
7.4.40.0060.00916.41
7.4.30.0080.00816.47
7.4.00.0090.00614.86
7.3.330.0000.00713.02
7.3.320.0050.00013.18
7.3.310.0040.00416.27
7.3.300.0030.00316.24
7.3.290.0090.01016.23
7.3.280.0090.01016.30
7.3.270.0030.01416.45
7.3.260.0070.01016.35
7.3.250.0090.00916.55
7.3.240.0130.00316.23
7.3.230.0060.01116.39
7.3.210.0060.01216.40
7.3.200.0060.01616.46
7.3.190.0140.00916.29
7.3.180.0120.00316.25
7.3.170.0130.00616.27
7.3.160.0160.00716.42
7.3.120.0070.01014.74
7.3.10.0110.00716.70
7.3.00.0010.01216.70
7.2.330.0100.00716.61
7.2.320.0120.00916.63
7.2.310.0150.00716.46
7.2.300.0060.01216.54
7.2.290.0120.00416.84
7.2.130.0080.01016.79
7.2.120.0040.01016.78
7.2.110.0070.00616.82
7.2.100.0050.00816.86
7.2.90.0050.01116.84
7.2.80.0100.00416.85
7.2.70.0070.00716.98
7.2.60.0060.00316.77
7.2.50.0120.00316.84
7.2.40.0090.00616.73
7.2.30.0090.00516.96
7.2.20.0080.00316.71
7.2.10.0060.00916.84
7.2.00.0050.00917.75
7.1.250.0080.00515.81
7.1.240.0070.01015.71
7.1.230.0080.00815.52
7.1.220.0070.00715.80
7.1.210.0130.00315.60
7.1.200.0110.00015.61
7.1.190.0100.00615.62
7.1.180.0110.00715.68
7.1.170.0050.00515.71
7.1.160.0000.01515.66
7.1.150.0100.00715.54
7.1.140.0050.00615.91
7.1.130.0110.00015.80
7.1.120.0030.00815.67
7.1.110.0050.01015.84
7.1.100.0030.00917.09
7.1.90.0100.00015.74
7.1.80.0040.00715.93
7.1.70.0050.00816.21
7.1.60.0110.00817.61
7.1.50.0060.00916.20
7.1.40.0060.00615.33
7.1.30.0070.00715.41
7.1.20.0040.00415.53
7.1.10.0100.00315.49
7.1.00.0050.04119.02
7.0.330.0030.01015.11
7.0.320.0030.00615.29
7.0.310.0040.01115.29
7.0.300.0070.00715.40
7.0.290.0060.00315.18
7.0.280.0070.00415.16
7.0.270.0090.00315.46
7.0.260.0000.01315.02
7.0.250.0120.00015.52
7.0.240.0080.00315.28
7.0.230.0090.00015.51
7.0.220.0030.01015.32
7.0.210.0040.00414.98
7.0.200.0120.00614.92
7.0.190.0000.00915.08
7.0.180.0070.00715.28
7.0.170.0000.01015.04
7.0.160.0000.01115.02
7.0.150.0090.00315.10
7.0.140.0030.03718.71
7.0.130.0050.00315.33
7.0.120.0010.04318.71
7.0.110.0080.00315.26
7.0.100.0060.00615.20
7.0.90.0030.00715.32
7.0.80.0030.00715.47
7.0.70.0030.00615.59
7.0.60.0090.02317.65
7.0.50.0120.02516.46
7.0.40.0070.02615.43
7.0.30.0080.04515.41
7.0.20.0070.04615.56
7.0.10.0070.04215.58
7.0.00.0030.04615.47
5.6.380.0080.00814.50
5.6.370.0000.01014.54
5.6.360.0080.00314.33
5.6.350.0030.00914.01
5.6.340.0120.00014.34
5.6.330.0000.00914.32
5.6.320.0120.00014.32
5.6.310.0080.00814.46
5.6.300.0060.00314.09
5.6.290.0070.00413.96
5.6.280.0090.03817.72
5.6.270.0080.00414.34
5.6.260.0000.01214.42
5.6.250.0000.01114.04
5.6.240.0060.00614.23
5.6.230.0000.01314.20
5.6.220.0000.01314.03
5.6.210.0050.03217.30
5.6.200.0120.04216.17
5.6.190.0050.02716.12
5.6.180.0080.04316.10
5.6.170.0120.03816.13
5.6.160.0070.02816.25
5.6.150.0020.02716.08
5.6.140.0050.02116.20
5.6.130.0060.02516.14
5.6.120.0030.02316.10
5.6.110.0110.03716.23
5.6.100.0050.02716.31
5.6.90.0080.02416.28
5.6.80.0030.02615.96
5.6.70.0110.03315.89
5.6.60.0030.03215.99
5.6.50.0050.02015.78
5.6.40.0030.02315.92
5.6.30.0020.02515.86
5.6.20.0060.02015.84
5.6.10.0040.02215.98
5.6.00.0070.02215.88
5.5.380.0030.00710.92
5.5.370.0040.00410.67
5.5.360.0060.00010.83
5.5.350.0230.03315.70
5.5.340.0060.03014.48
5.5.330.0050.03714.44
5.5.320.0070.04014.46
5.5.310.0030.03714.49
5.5.300.0030.02514.37
5.5.290.0050.04314.42
5.5.280.0020.04514.33
5.5.270.0020.03114.51
5.5.260.0060.04614.40
5.5.250.0070.04614.16
5.5.240.0120.02714.24
5.5.230.0090.03814.08
5.5.220.0050.02014.09
5.5.210.0060.02114.13
5.5.200.0030.02213.90
5.5.190.0070.01814.16
5.5.180.0030.02714.22
5.5.170.0030.00611.22
5.5.160.0020.02414.21
5.5.150.0020.02214.10
5.5.140.0040.02714.21
5.5.130.0050.02014.12
5.5.120.0040.02014.19
5.5.110.0050.01814.29
5.5.100.0090.01713.94
5.5.90.0060.02314.14
5.5.80.0020.02214.22
5.5.70.0020.02314.13
5.5.60.0020.02014.04
5.5.50.0080.01514.03
5.5.40.0050.02014.11
5.5.30.0030.02014.07
5.5.20.0050.01813.96
5.5.10.0020.02214.07
5.5.00.0050.01814.00
5.4.450.0020.02915.13
5.4.440.0080.03115.04
5.4.430.0050.03015.04
5.4.420.0050.02915.16
5.4.410.0050.03914.98
5.4.400.0070.02214.88
5.4.390.0030.03314.94
5.4.380.0040.02114.88
5.4.370.0030.02115.00
5.4.360.0020.02314.94
5.4.350.0020.02315.00
5.4.340.0020.02315.03
5.4.330.0030.00310.76
5.4.320.0030.02214.94
5.4.310.0080.01514.95
5.4.300.0070.02215.04
5.4.290.0050.02914.95
5.4.280.0110.03214.92
5.4.270.0030.02715.03
5.4.260.0050.02114.96
5.4.250.0070.02314.84
5.4.240.0020.02214.84
5.4.230.0040.02514.95
5.4.220.0060.02014.94
5.4.210.0030.02015.01
5.4.200.0050.01914.78
5.4.190.0060.01814.82
5.4.180.0060.01814.86
5.4.170.0040.02115.02
5.4.160.0060.01914.87
5.4.150.0040.02214.95
5.4.140.0040.02213.61
5.4.130.0020.02013.54
5.4.120.0000.02313.51
5.4.110.0070.01513.70
5.4.100.0040.01813.73
5.4.90.0000.02213.47
5.4.80.0060.01713.71
5.4.70.0060.03113.59
5.4.60.0030.02513.65
5.4.50.0020.03913.61
5.4.40.0010.03113.64
5.4.30.0060.02313.71
5.4.20.0000.02413.56
5.4.10.0000.03913.58
5.4.00.0040.02013.38
5.3.290.0070.02312.63
5.3.280.0050.01812.48
5.3.270.0060.01812.44
5.3.260.0040.02212.56
5.3.250.0030.02012.62
5.3.240.0030.02012.45
5.3.230.0030.02112.53
5.3.220.0030.02512.44
5.3.210.0000.02412.44
5.3.200.0050.02012.45
5.3.190.0000.02712.31
5.3.180.0030.02012.46
5.3.170.0000.02312.52
5.3.160.0070.01712.48
5.3.150.0030.02012.56
5.3.140.0050.02312.37
5.3.130.0080.01712.53
5.3.120.0030.04012.39
5.3.110.0020.02312.44
5.3.100.0000.04712.11
5.3.90.0050.02012.14
5.3.80.0020.02212.19
5.3.70.0070.01812.14
5.3.60.0060.04412.15
5.3.50.0030.03012.08
5.3.40.0060.02312.09
5.3.30.0080.03512.08
5.3.20.0030.03611.98
5.3.10.0080.03111.92
5.3.00.0020.02611.81
5.2.170.0020.03910.49
5.2.160.0070.02510.46
5.2.150.0050.03210.62
5.2.140.0050.02810.45
5.2.130.0020.03510.51
5.2.120.0020.02110.54
5.2.110.0020.02010.51
5.2.100.0050.02010.54
5.2.90.0000.02610.48
5.2.80.0000.03410.49
5.2.70.0080.03110.48
5.2.60.0030.02310.49
5.2.50.0030.03310.48
5.2.40.0080.02510.46
5.2.30.0060.02210.44
5.2.20.0020.03610.43
5.2.10.0050.02010.42
5.2.00.0020.02010.40
5.1.60.0070.0279.99
5.1.50.0040.0279.95
5.1.40.0030.0249.97
5.1.30.0060.02910.12
5.1.20.0050.02810.13
5.1.10.0020.02510.04
5.1.00.0050.0279.92
5.0.50.0050.0249.26
5.0.40.0030.0209.09
5.0.30.0030.0189.10
5.0.20.0060.0079.11
5.0.10.0030.0119.05
5.0.00.0010.0188.96
4.4.90.0030.0168.74
4.4.80.0000.0158.74
4.4.70.0010.0218.74
4.4.60.0010.0168.74
4.4.50.0020.0208.74
4.4.40.0000.0338.74
4.4.30.0000.0228.74
4.4.20.0020.0128.74
4.4.10.0030.0178.74
4.4.00.0030.0278.74
4.3.110.0060.0168.74
4.3.100.0040.0078.74
4.3.90.0020.0108.74
4.3.80.0030.0168.74
4.3.70.0000.0228.74
4.3.60.0020.0208.74
4.3.50.0020.0128.74
4.3.40.0020.0248.74
4.3.30.0070.0158.74
4.3.20.0030.0208.74
4.3.10.0000.0238.74
4.3.00.0030.0088.74

preferences:
40.52 ms | 400 KiB | 5 Q