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, "\n"); print_r($lines); $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.0120.00318.30
8.3.50.0130.00621.99
8.3.40.0140.00018.77
8.3.30.0150.00018.96
8.3.20.0080.00020.41
8.3.10.0080.00022.09
8.3.00.0070.00022.43
8.2.180.0140.00416.50
8.2.170.0140.00422.96
8.2.160.0100.00320.95
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00819.23
8.2.110.0060.00620.89
8.2.100.0040.00817.66
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0070.00018.07
8.2.20.0040.00417.58
8.2.10.0060.00317.80
8.2.00.0040.00417.63
8.1.280.0100.00325.92
8.1.270.0080.00023.92
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.17
8.1.230.0070.00418.96
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0090.00017.34
8.1.190.0030.00517.39
8.1.180.0030.00918.10
8.1.170.0040.00418.57
8.1.160.0000.00721.90
8.1.150.0000.00718.52
8.1.140.0070.00017.34
8.1.130.0000.00717.75
8.1.120.0040.00417.44
8.1.110.0000.00717.35
8.1.100.0000.00817.48
8.1.90.0050.00217.47
8.1.80.0000.00717.46
8.1.70.0000.00717.44
8.1.60.0030.00517.50
8.1.50.0040.00417.55
8.1.40.0040.00417.56
8.1.30.0080.00017.61
8.1.20.0000.00817.64
8.1.10.0030.00517.53
8.1.00.0040.00417.43
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0030.00517.24
8.0.260.0030.00317.00
8.0.250.0000.00717.04
8.0.240.0030.00517.05
8.0.230.0000.00816.94
8.0.220.0040.00416.88
8.0.210.0000.00716.93
8.0.200.0000.00617.09
8.0.190.0040.00816.92
8.0.180.0000.00716.96
8.0.170.0000.00816.99
8.0.160.0040.00416.97
8.0.150.0060.00316.80
8.0.140.0000.00816.95
8.0.130.0060.00013.36
8.0.120.0040.00416.91
8.0.110.0070.00017.00
8.0.100.0030.00516.86
8.0.90.0030.00516.84
8.0.80.0110.01116.92
8.0.70.0000.00716.95
8.0.60.0070.00016.77
8.0.50.0040.00416.96
8.0.30.0070.01217.07
8.0.20.0100.01117.40
8.0.10.0000.00716.96
8.0.00.0090.00917.01
7.4.330.0000.00515.08
7.4.320.0030.00316.67
7.4.300.0060.00016.42
7.4.290.0040.00416.54
7.4.280.0000.00716.45
7.4.270.0030.00316.53
7.4.260.0040.00316.52
7.4.250.0040.00416.41
7.4.240.0060.00216.62
7.4.230.0070.00016.45
7.4.220.0090.00916.46
7.4.210.0040.01316.55
7.4.200.0030.00316.61
7.4.190.0030.00316.61
7.4.160.0160.00016.60
7.4.150.0130.01017.40
7.4.140.0140.00517.86
7.4.130.0130.00316.58
7.4.120.0070.01216.59
7.4.110.0060.01016.60
7.4.100.0150.00416.47
7.4.90.0160.00716.61
7.4.80.0090.00919.39
7.4.70.0060.01016.64
7.4.60.0090.00616.47
7.4.50.0060.00316.43
7.4.40.0030.01422.77
7.4.30.0060.00916.75
7.4.00.0070.01114.93
7.3.330.0000.00613.29
7.3.320.0050.00013.32
7.3.310.0000.00816.22
7.3.300.0030.00316.42
7.3.290.0000.01916.40
7.3.280.0130.00616.36
7.3.270.0070.01017.40
7.3.260.0100.00716.43
7.3.250.0100.00816.53
7.3.240.0090.01216.39
7.3.230.0060.01016.46
7.3.210.0090.01416.35
7.3.200.0120.00919.39
7.3.190.0090.00916.57
7.3.180.0060.01016.32
7.3.170.0120.00616.39
7.3.160.0080.00816.50
7.3.120.0070.00715.07
7.3.10.0080.00416.50
7.3.00.0020.01016.25
7.2.330.0070.01016.66
7.2.320.0130.01016.75
7.2.310.0060.01316.65
7.2.300.0090.00916.68
7.2.290.0100.00716.68
7.2.130.0100.00516.70
7.2.120.0040.00816.77
7.2.110.0040.00816.64
7.2.100.0080.00516.71
7.2.90.0070.00616.56
7.2.80.0080.00616.74
7.2.70.0080.00616.76
7.2.60.0130.00316.92
7.2.50.0110.00616.81
7.2.40.0060.00816.72
7.2.30.0110.00716.48
7.2.20.0100.00316.91
7.2.10.0060.01016.67
7.2.00.0090.00316.84
7.1.250.0060.00715.61
7.1.240.0080.00415.85
7.1.230.0030.00615.61
7.1.220.0090.00315.75
7.1.210.0060.00615.61
7.1.200.0120.00315.86
7.1.190.0060.00315.80
7.1.180.0030.01415.73
7.1.170.0060.00615.86
7.1.160.0070.00715.80
7.1.150.0060.00915.48
7.1.140.0070.00315.90
7.1.130.0030.00615.71
7.1.120.0040.00715.78
7.1.110.0040.00715.73
7.1.100.0070.00415.55
7.1.90.0130.00015.95
7.1.80.0080.00415.81
7.1.70.0070.00216.40
7.1.60.0050.01317.77
7.1.50.0070.01116.39
7.1.40.0090.00315.83
7.1.30.0040.01115.86
7.1.20.0120.00015.75
7.1.10.0000.01115.84
7.1.00.0030.04419.09
7.0.330.0070.00715.07
7.0.320.0090.00415.43
7.0.310.0060.00915.39
7.0.300.0070.00715.41
7.0.290.0040.00715.43
7.0.280.0040.00815.16
7.0.270.0030.00715.42
7.0.260.0070.00715.40
7.0.250.0070.00315.55
7.0.240.0030.00715.64
7.0.230.0090.00015.41
7.0.220.0080.00015.68
7.0.210.0090.00015.28
7.0.200.0030.00816.00
7.0.190.0000.01115.62
7.0.180.0030.00715.51
7.0.170.0000.01315.39
7.0.160.0070.00715.15
7.0.150.0030.00615.32
7.0.140.0080.03718.80
7.0.130.0030.00615.46
7.0.120.0060.00615.55
7.0.110.0060.00615.41
7.0.100.0140.03317.69
7.0.90.0100.03217.71
7.0.80.0050.02717.82
7.0.70.0120.03717.72
7.0.60.0030.04517.65
7.0.50.0070.04817.87
7.0.40.0080.04316.79
7.0.30.0150.04016.86
7.0.20.0140.03516.84
7.0.10.0100.04016.83
7.0.00.0080.04116.76
5.6.380.0040.00814.38
5.6.370.0030.01014.21
5.6.360.0070.01014.20
5.6.350.0100.00314.75
5.6.340.0080.00314.54
5.6.330.0090.00614.50
5.6.320.0040.00714.54
5.6.310.0090.00314.17
5.6.300.0040.00714.37
5.6.290.0060.00613.97
5.6.280.0070.04017.81
5.6.270.0080.00414.42
5.6.260.0030.00714.61
5.6.250.0050.04117.55
5.6.240.0060.02617.52
5.6.230.0090.03617.41
5.6.220.0100.03617.47
5.6.210.0030.04517.45
5.6.200.0070.04317.66
5.6.190.0100.04317.56
5.6.180.0060.04517.91
5.6.170.0090.04217.58
5.6.160.0050.03517.72
5.6.150.0030.05017.80
5.6.140.0030.04417.69
5.6.130.0060.02417.70
5.6.120.0080.02817.67
5.6.110.0030.05217.56
5.6.100.0080.02717.66
5.6.90.0030.04817.59
5.6.80.0100.04017.28
5.6.70.0080.03817.37
5.6.60.0050.04417.24
5.6.50.0120.03717.31
5.6.40.0050.04517.19
5.6.30.0120.03817.23
5.6.20.0090.04117.41
5.6.10.0070.04717.30
5.6.00.0070.04317.42
5.5.380.0080.02215.80
5.5.370.0050.03515.84
5.5.360.0070.02715.83
5.5.350.0070.02215.88
5.5.340.0070.04215.95
5.5.330.0070.03816.02
5.5.320.0030.03215.99
5.5.310.0080.03616.04
5.5.300.0070.04316.12
5.5.290.0130.03416.02
5.5.280.0140.02516.06
5.5.270.0060.04215.96
5.5.260.0110.03816.03
5.5.250.0030.04515.90
5.5.240.0030.03915.72
5.5.230.0020.04215.73
5.5.220.0140.03315.68
5.5.210.0050.03615.69
5.5.200.0080.03715.68
5.5.190.0040.04515.66
5.5.180.0080.04015.72
5.5.170.0110.00011.18
5.5.160.0050.03015.70
5.5.150.0050.04215.69
5.5.140.0030.04015.65
5.5.130.0040.02515.71
5.5.120.0090.02715.70
5.5.110.0050.03215.72
5.5.100.0040.04415.64
5.5.90.0050.04015.61
5.5.80.0030.04215.64
5.5.70.0020.04415.64
5.5.60.0080.03815.61
5.5.50.0090.03715.62
5.5.40.0040.02215.57
5.5.30.0080.03815.74
5.5.20.0040.04515.66
5.5.10.0050.03115.64
5.5.00.0070.04215.59
5.4.450.0070.03815.38
5.4.440.0060.04115.31
5.4.430.0030.03915.19
5.4.420.0010.03815.31
5.4.410.0070.04015.28
5.4.400.0000.02815.21
5.4.390.0060.03815.13
5.4.380.0030.03615.04
5.4.370.0100.03515.13
5.4.360.0060.03315.19
5.4.350.0060.04015.16
5.4.340.0070.03915.16
5.4.330.0070.00711.18
5.4.320.0030.03115.04
5.4.310.0070.04115.03
5.4.300.0020.03615.18
5.4.290.0090.04015.16
5.4.280.0100.03615.15
5.4.270.0000.04615.04
5.4.260.0100.03515.13
5.4.250.0070.03715.15
5.4.240.0070.03915.01
5.4.230.0070.04215.10
5.4.220.0070.04015.15
5.4.210.0070.03815.21
5.4.200.0050.03815.16
5.4.190.0150.03015.18
5.4.180.0160.03315.11
5.4.170.0070.02515.11
5.4.160.0050.02515.13
5.4.150.0030.02515.17
5.4.140.0020.04013.82
5.4.130.0090.03313.79
5.4.120.0060.03213.80
5.4.110.0110.03513.75
5.4.100.0010.04313.78
5.4.90.0070.01813.84
5.4.80.0050.03913.80
5.4.70.0090.03313.79
5.4.60.0030.02013.84
5.4.50.0030.04213.74
5.4.40.0030.04313.86
5.4.30.0060.03813.82
5.4.20.0030.04013.71
5.4.10.0060.04013.83
5.4.00.0050.03313.52
5.3.290.0050.04112.92
5.3.280.0040.04212.91
5.3.270.0060.04512.94
5.3.260.0020.03312.94
5.3.250.0040.02012.92
5.3.240.0060.02112.88
5.3.230.0030.03212.94
5.3.220.0030.02112.83
5.3.210.0060.03812.87
5.3.200.0080.04012.88
5.3.190.0070.03512.89
5.3.180.0050.03112.88
5.3.170.0060.02312.83
5.3.160.0070.02712.87
5.3.150.0070.03612.91
5.3.140.0060.03112.83
5.3.130.0030.04412.92
5.3.120.0070.04012.89
5.3.110.0030.04212.82
5.3.100.0030.03712.66
5.3.90.0040.03412.65
5.3.80.0050.03912.63
5.3.70.0030.04012.60
5.3.60.0030.03312.55
5.3.50.0050.03712.52
5.3.40.0000.04112.61
5.3.30.0080.03112.57
5.3.20.0030.03912.44
5.3.10.0020.04312.41
5.3.00.0090.03512.46
5.2.170.0010.03611.17
5.2.160.0040.03411.11
5.2.150.0080.02811.16
5.2.140.0090.03011.21
5.2.130.0050.01411.08
5.2.120.0060.03211.09
5.2.110.0030.01911.14
5.2.100.0010.03011.15
5.2.90.0060.03111.15
5.2.80.0070.03011.09
5.2.70.0060.03011.09
5.2.60.0020.03611.04
5.2.50.0050.01711.12
5.2.40.0050.02511.05
5.2.30.0000.02111.07
5.2.20.0040.01911.08
5.2.10.0050.03211.05
5.2.00.0030.02810.93
5.1.60.0040.02910.61
5.1.50.0070.01510.60
5.1.40.0030.02510.59
5.1.30.0010.01910.79
5.1.20.0030.03010.78
5.1.10.0030.01610.66
5.1.00.0000.03110.63
5.0.50.0020.0149.91
5.0.40.0070.0159.85
5.0.30.0020.0329.73
5.0.20.0010.0259.72
5.0.10.0050.0199.73
5.0.00.0050.0339.73
4.4.90.0020.0199.66
4.4.80.0000.0219.66
4.4.70.0050.0119.66
4.4.60.0000.0239.66
4.4.50.0030.0159.66
4.4.40.0000.0229.66
4.4.30.0040.0209.66
4.4.20.0020.0219.66
4.4.10.0050.0169.66
4.4.00.0010.0319.66
4.3.110.0010.0209.66
4.3.100.0050.0179.66
4.3.90.0070.0089.66
4.3.80.0020.0319.66
4.3.70.0050.0159.66
4.3.60.0020.0189.66
4.3.50.0060.0109.66
4.3.40.0000.0289.66
4.3.30.0030.0189.66
4.3.20.0000.0229.66
4.3.10.0000.0219.66
4.3.00.0020.0179.66

preferences:
55.47 ms | 401 KiB | 5 Q