3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<EOT Article Morbi nisl tortor, consectetur vitae laoreet eu, lobortis id ipsum. Integer scelerisque blandit pulvinar. Nam tempus mi eget nunc laoreet venenatis. Proin viverra, erat at accumsan tincidunt, ante mi cursus elit, non Fogsu congue mauris dolor ac elit. Maecenas mollis nisl a sem semper ornare. Integer nunc purus, dapibus nec dignissim sed, dictum eget leo. Etiam in mi ut erat pretium fringilla sed EOT; $lines = explode($text, "\r"); $class = 'single'; foreach ($lines as $line) { if ( strlen($line) == 0) { $class = 'double'; } else { printf ('<p class="%s">%s</p>', $class, $line); $class = 'single'; } }

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.0080.00818.56
8.3.50.0100.00721.88
8.3.40.0090.00618.50
8.3.30.0100.00318.78
8.3.20.0130.00020.34
8.3.10.0040.00422.13
8.3.00.0000.00822.34
8.2.180.0040.01116.38
8.2.170.0070.01022.96
8.2.160.0120.00320.76
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.38
8.2.110.0040.00422.19
8.2.100.0080.00417.78
8.2.90.0040.00419.05
8.2.80.0090.00018.04
8.2.70.0030.00617.63
8.2.60.0000.00918.05
8.2.50.0030.00518.07
8.2.40.0050.00318.34
8.2.30.0050.00217.92
8.2.20.0040.00417.73
8.2.10.0060.00317.87
8.2.00.0040.00417.76
8.1.280.0140.00725.92
8.1.270.0040.00421.83
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.90
8.1.230.0050.00519.09
8.1.220.0030.00617.79
8.1.210.0030.00518.77
8.1.200.0070.00417.23
8.1.190.0040.00417.52
8.1.180.0040.00418.10
8.1.170.0040.00418.68
8.1.160.0030.00522.05
8.1.150.0060.00318.57
8.1.140.0030.00617.46
8.1.130.0000.00817.89
8.1.120.0030.00317.46
8.1.110.0000.00817.36
8.1.100.0030.00317.31
8.1.90.0000.00817.45
8.1.80.0040.00317.54
8.1.70.0070.00017.43
8.1.60.0040.00417.50
8.1.50.0050.00317.53
8.1.40.0040.00417.56
8.1.30.0060.00317.56
8.1.20.0000.00917.69
8.1.10.0040.00417.52
8.1.00.0000.00817.47
8.0.300.0070.00018.77
8.0.290.0000.00717.15
8.0.280.0070.00018.45
8.0.270.0070.00017.27
8.0.260.0000.00616.90
8.0.250.0040.00417.07
8.0.240.0000.00716.99
8.0.230.0000.00717.04
8.0.220.0000.00716.94
8.0.210.0070.00016.85
8.0.200.0000.00617.07
8.0.190.0080.00316.92
8.0.180.0050.00316.96
8.0.170.0000.00816.98
8.0.160.0000.00716.99
8.0.150.0000.00816.82
8.0.140.0060.00316.84
8.0.130.0030.00313.40
8.0.120.0000.00716.95
8.0.110.0030.00616.88
8.0.100.0050.00216.86
8.0.90.0040.00416.86
8.0.80.0060.00917.00
8.0.70.0070.00016.85
8.0.60.0000.00716.79
8.0.50.0000.00717.01
8.0.30.0140.00817.18
8.0.20.0040.01517.40
8.0.10.0000.00717.10
8.0.00.0140.00816.69
7.4.330.0000.00515.00
7.4.320.0000.00616.47
7.4.300.0030.00316.62
7.4.290.0070.00016.62
7.4.280.0000.00716.46
7.4.270.0070.00016.46
7.4.260.0000.00716.61
7.4.250.0030.00316.50
7.4.240.0020.00516.47
7.4.230.0040.00416.33
7.4.220.0070.01016.66
7.4.210.0070.00716.56
7.4.200.0000.00716.36
7.4.190.0070.00016.78
7.4.160.0150.00016.38
7.4.150.0140.00317.40
7.4.140.0070.01417.86
7.4.130.0100.00716.46
7.4.120.0030.01416.49
7.4.110.0000.01716.52
7.4.100.0160.00516.54
7.4.90.0060.01516.49
7.4.80.0160.00319.39
7.4.70.0100.00616.36
7.4.60.0060.01016.57
7.4.50.0000.00416.35
7.4.40.0110.00422.77
7.4.30.0110.00516.46
7.4.00.0060.00915.13
7.3.330.0030.00313.18
7.3.320.0030.00313.19
7.3.310.0040.00416.41
7.3.300.0070.00016.30
7.3.290.0200.00016.45
7.3.280.0070.01016.46
7.3.270.0070.01017.40
7.3.260.0130.00316.37
7.3.250.0090.00816.42
7.3.240.0120.00616.43
7.3.230.0100.00616.60
7.3.210.0090.00916.62
7.3.200.0110.00719.39
7.3.190.0100.00716.42
7.3.180.0160.00316.43
7.3.170.0110.00716.34
7.3.160.0060.01616.41
7.3.120.0100.00714.87
7.2.330.0030.01416.72
7.2.320.0060.01716.61
7.2.310.0130.00316.59
7.2.300.0130.00316.79
7.2.290.0060.01016.50
7.2.60.0140.00016.88
7.2.50.0100.00316.95
7.1.200.0110.00015.84
7.1.70.0000.01016.79
7.1.60.0120.00919.82
7.1.50.0070.01416.98
7.1.00.0070.07322.31
7.0.200.0000.00716.72
7.0.140.0070.07021.90
7.0.60.0070.04019.95
7.0.50.0130.04317.90
7.0.40.0100.08320.04
7.0.30.0370.07320.13
7.0.20.0330.07320.21
7.0.10.0000.08720.01
7.0.00.0070.06720.11
5.6.280.0100.06721.07
5.6.210.0100.07320.48
5.6.200.0000.04318.19
5.6.190.0070.04020.77
5.6.180.3270.04720.77
5.6.170.0200.03720.48
5.6.160.0030.04720.54
5.6.150.0030.08318.21
5.6.140.0070.08018.08
5.6.130.0070.05718.09
5.6.120.0100.03720.99
5.6.110.0100.08321.11
5.6.100.0170.08021.00
5.6.90.0070.03720.98
5.6.80.0030.05720.33
5.6.70.3300.04020.39
5.5.350.0100.07720.38
5.5.340.0070.06018.01
5.5.330.0100.08320.29
5.5.320.3170.03320.20
5.5.310.0130.04720.29
5.5.300.0100.07717.91
5.5.290.0070.04018.01
5.5.280.0070.08720.89
5.5.270.0000.06720.97
5.5.260.0070.07320.67
5.5.250.0030.09020.64
5.5.240.0230.08020.25
5.4.450.0600.03019.11
5.4.440.0300.03719.56
5.4.430.0300.03319.38
5.4.420.0700.04019.13
5.4.410.0030.06718.95
5.4.400.0170.06718.77
5.4.390.0200.04718.72
5.4.380.0130.05718.77
5.4.370.0200.05718.68
5.4.360.0230.04318.72
5.4.350.0100.05718.52
5.4.340.0100.05718.71
5.4.320.0110.03712.45
5.4.310.0060.04512.45
5.4.300.0110.03712.46
5.4.290.0050.03812.45
5.4.280.0060.03512.32
5.4.270.0080.03712.32
5.4.260.0070.04012.32
5.4.250.0060.03712.32
5.4.240.0070.03512.32
5.4.230.0050.03912.31
5.4.220.0050.04112.31
5.4.210.0070.03812.31
5.4.200.0070.04312.31
5.4.190.0060.03512.31
5.4.180.0050.03612.31
5.4.170.0070.03512.32
5.4.160.0080.03312.31
5.4.150.0100.04012.30
5.4.140.0100.03211.99
5.4.130.0080.03411.98
5.4.120.0020.03911.94
5.4.110.0030.03911.93
5.4.100.0050.03611.93
5.4.90.0040.03811.93
5.4.80.0090.03311.93
5.4.70.0060.03511.93
5.4.60.0050.03611.93
5.4.50.0030.03711.93
5.4.40.0070.03711.91
5.4.30.0080.03811.92
5.4.20.0030.03811.92
5.4.10.0070.03911.92
5.4.00.0050.03611.41
5.3.290.0070.04112.80
5.3.280.0090.03512.71
5.3.270.0050.03912.72
5.3.260.0040.04412.72
5.3.250.0050.03712.72
5.3.240.0090.03812.72
5.3.230.0070.03712.71
5.3.220.0060.03712.68
5.3.210.0110.03512.68
5.3.200.0100.03212.68
5.3.190.0120.03212.68
5.3.180.0060.04412.67
5.3.170.0080.03512.67
5.3.160.0080.03412.67
5.3.150.0090.03412.67
5.3.140.0060.03712.66
5.3.130.0070.03812.66
5.3.120.0070.03712.66
5.3.110.0060.04412.66
5.3.100.0060.04512.12
5.3.90.0080.03312.08
5.3.80.0080.03612.08
5.3.70.0030.04112.08
5.3.60.0060.03812.06
5.3.50.0080.03312.00
5.3.40.0030.03812.00
5.3.30.0040.04611.94
5.3.20.0060.03511.70
5.3.10.0080.03411.66
5.3.00.0040.03711.66
5.2.170.0030.0319.15
5.2.160.0050.0289.15
5.2.150.0060.0299.15
5.2.140.0020.0379.14
5.2.130.0040.0299.11
5.2.120.0040.0299.11
5.2.110.0040.0299.11
5.2.100.0050.0289.11
5.2.90.0050.0329.11
5.2.80.0030.0339.10
5.2.70.0070.0289.10
5.2.60.0040.0309.06
5.2.50.0040.0309.03
5.2.40.0080.0329.00
5.2.30.0040.0308.98
5.2.20.0050.0298.99
5.2.10.0060.0338.92
5.2.00.0040.0288.77
5.1.60.0040.0288.06
5.1.50.0050.0238.06
5.1.40.0040.0268.05
5.1.30.0040.0298.39
5.1.20.0040.0308.42
5.1.10.0040.0258.14
5.1.00.0040.0258.14
5.0.50.0070.0246.62
5.0.40.0030.0196.48
5.0.30.0040.0306.29
5.0.20.0050.0176.27
5.0.10.0050.0186.24
5.0.00.0050.0366.23
4.4.90.0050.0144.77
4.4.80.0020.0164.75
4.4.70.0010.0174.75
4.4.60.0030.0164.76
4.4.50.0020.0164.77
4.4.40.0010.0274.71
4.4.30.0010.0174.76
4.4.20.0020.0164.85
4.4.10.0030.0154.85
4.4.00.0010.0264.76
4.3.110.0030.0154.67
4.3.100.0020.0154.66
4.3.90.0020.0154.63
4.3.80.0040.0244.58
4.3.70.0070.0194.63
4.3.60.0010.0164.63
4.3.50.0030.0174.63
4.3.40.0040.0314.54
4.3.30.0020.0233.30
4.3.20.0030.0143.28
4.3.10.0040.0153.22
4.3.00.0000.02015.11

preferences:
34.3 ms | 401 KiB | 5 Q