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($text); $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.0110.00418.30
8.3.50.0110.00921.98
8.3.40.0140.00018.55
8.3.30.0110.00419.05
8.3.20.0040.00420.20
8.3.10.0040.00422.10
8.3.00.0000.00822.30
8.2.180.0000.01418.16
8.2.170.0070.00722.96
8.2.160.0070.00720.95
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.23
8.2.110.0000.01022.31
8.2.100.0040.00817.72
8.2.90.0040.00419.10
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00917.68
8.2.50.0080.00018.07
8.2.40.0000.00718.16
8.2.30.0070.00018.02
8.2.20.0020.00517.71
8.2.10.0040.00417.73
8.2.00.0040.00417.70
8.1.280.0070.00725.92
8.1.270.0080.00023.88
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0040.00423.85
8.1.230.0100.00319.06
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0050.00317.28
8.1.180.0050.00318.10
8.1.170.0060.00318.64
8.1.160.0040.00422.01
8.1.150.0030.00618.70
8.1.140.0030.00517.37
8.1.130.0000.00717.75
8.1.120.0050.00317.37
8.1.110.0040.00417.50
8.1.100.0000.00717.42
8.1.90.0030.00317.43
8.1.80.0000.00717.50
8.1.70.0030.00317.48
8.1.60.0040.00417.55
8.1.50.0040.00417.55
8.1.40.0050.00217.45
8.1.30.0000.00917.70
8.1.20.0040.00417.67
8.1.10.0000.00817.50
8.1.00.0050.00217.48
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0030.00518.47
8.0.270.0050.00216.81
8.0.260.0000.00716.80
8.0.250.0030.00317.05
8.0.240.0000.00917.01
8.0.230.0000.00817.05
8.0.220.0000.00716.96
8.0.210.0000.00716.84
8.0.200.0080.00017.07
8.0.190.0040.00717.02
8.0.180.0030.00316.99
8.0.170.0040.00416.88
8.0.160.0040.00417.02
8.0.150.0070.00016.95
8.0.140.0040.00416.88
8.0.130.0000.00613.39
8.0.120.0080.00016.79
8.0.110.0040.00416.99
8.0.100.0040.00416.82
8.0.90.0000.00716.90
8.0.80.0090.00617.02
8.0.70.0040.00416.97
8.0.60.0040.00417.02
8.0.50.0070.00016.96
8.0.30.0050.01417.09
8.0.20.0060.01317.40
8.0.10.0030.00516.95
8.0.00.0050.01216.75
7.4.330.0050.00015.00
7.4.320.0020.00516.63
7.4.300.0030.00316.37
7.4.290.0070.00016.54
7.4.280.0030.00316.52
7.4.270.0070.00016.51
7.4.260.0000.00716.45
7.4.250.0000.00716.43
7.4.240.0030.00316.60
7.4.230.0070.00016.33
7.4.220.0090.00916.52
7.4.210.0090.00516.66
7.4.200.0070.00016.61
7.4.190.0000.00816.66
7.4.160.0060.01616.68
7.4.150.0030.01417.40
7.4.140.0080.01017.86
7.4.130.0100.00816.74
7.4.120.0100.00716.52
7.4.110.0100.01016.58
7.4.100.0110.00616.45
7.4.90.0100.00716.71
7.4.80.0040.01419.39
7.4.70.0130.00716.35
7.4.60.0180.00016.55
7.4.50.0000.00416.57
7.4.40.0060.01022.77
7.4.30.0120.00316.61
7.4.10.0060.01314.87
7.4.00.0030.01115.04
7.3.330.0050.00013.23
7.3.320.0000.00513.05
7.3.310.0030.00316.24
7.3.300.0050.00216.32
7.3.290.0120.00616.38
7.3.280.0090.01016.38
7.3.270.0090.01517.40
7.3.260.0100.00616.58
7.3.250.0090.00916.62
7.3.240.0100.00716.52
7.3.230.0060.01116.65
7.3.210.0090.01516.43
7.3.200.0030.01619.39
7.3.190.0070.01016.43
7.3.180.0140.00716.33
7.3.170.0060.00916.54
7.3.160.0120.00316.32
7.3.130.0060.01214.84
7.3.120.0100.00814.91
7.3.110.0030.01414.85
7.3.100.0070.00715.01
7.3.90.0060.00614.75
7.3.80.0130.00314.79
7.3.70.0050.00814.95
7.3.60.0040.01015.01
7.3.50.0060.01014.94
7.3.40.0030.01114.78
7.3.30.0050.00814.92
7.3.20.0020.01116.52
7.3.10.0070.00516.74
7.3.00.0070.00716.77
7.2.330.0160.00616.79
7.2.320.0150.01016.68
7.2.310.0070.01316.68
7.2.300.0030.01316.60
7.2.290.0080.00816.63
7.2.260.0030.01715.08
7.2.250.0120.00515.10
7.2.240.0040.01315.03
7.2.230.0070.00714.89
7.2.220.0060.00615.07
7.2.210.0090.00514.96
7.2.200.0030.00614.96
7.2.190.0040.01614.90
7.2.180.0050.01315.12
7.2.170.0080.00515.00
7.2.160.0080.00815.18
7.2.150.0110.00316.76
7.2.140.0090.00316.82
7.2.130.0030.01016.82
7.2.120.0030.00616.92
7.2.110.0130.00016.78
7.2.100.0060.00317.07
7.2.90.0090.00316.95
7.2.80.0070.01017.02
7.2.70.0090.00616.71
7.2.60.0000.01616.89
7.2.50.0060.00616.85
7.2.40.0080.00816.97
7.2.30.0130.00717.04
7.2.20.0060.00917.06
7.2.10.0090.00616.79
7.2.00.0070.01116.74
7.1.330.0060.00815.64
7.1.320.0050.01015.72
7.1.310.0050.00615.79
7.1.300.0080.00915.78
7.1.290.0030.01415.68
7.1.280.0070.00615.80
7.1.270.0070.00715.71
7.1.260.0020.01115.81
7.1.250.0040.00415.54
7.1.240.0050.00315.73
7.1.230.0030.00915.85
7.1.220.0060.01015.79
7.1.210.0080.00315.69
7.1.200.0060.00615.92
7.1.190.0110.00015.86
7.1.180.0070.00415.97
7.1.170.0030.01015.87
7.1.160.0030.01415.79
7.1.150.0060.01015.73
7.1.140.0060.01015.84
7.1.130.0050.00515.71
7.1.120.0000.01016.00
7.1.110.0070.00715.83
7.1.100.0070.00715.92
7.1.90.0070.00315.77
7.1.80.0030.01215.76
7.1.70.0020.01116.46
7.1.60.0050.01217.76
7.1.50.0090.00716.46
7.1.40.0030.00615.63
7.1.30.0060.00915.81
7.1.20.0060.01015.47
7.1.10.0070.01015.48
7.1.00.0050.04119.11
7.0.330.0070.00415.31
7.0.320.0110.00415.45
7.0.310.0050.00515.54
7.0.300.0060.00915.12
7.0.290.0070.00715.44
7.0.280.0100.00715.55
7.0.270.0030.00715.57
7.0.260.0000.00815.29
7.0.250.0030.01015.53
7.0.240.0080.00315.26
7.0.230.0060.00315.39
7.0.220.0030.01015.66
7.0.210.0070.00715.34
7.0.200.0030.00516.14
7.0.190.0070.01015.48
7.0.180.0090.00615.60
7.0.170.0030.01015.44
7.0.160.0090.00615.43
7.0.150.0070.01015.23
7.0.140.0030.03818.73
7.0.130.0070.00715.55
7.0.120.0000.01215.61
7.0.110.0110.00415.48
7.0.100.0150.00315.22
7.0.90.0000.01715.39
7.0.80.0080.00015.44
7.0.70.0000.01415.37
7.0.60.0060.04617.68
7.0.50.0050.04716.62
7.0.40.0070.02316.76
7.0.30.0160.04116.72
7.0.20.0150.05016.72
7.0.10.0070.04316.70
7.0.00.0100.03816.97
5.6.400.0070.00413.89
5.6.390.0030.00714.31
5.6.380.0000.00814.20
5.6.370.0100.00314.52
5.6.360.0080.00814.12
5.6.350.0060.00614.21
5.6.340.0030.01314.25
5.6.330.0070.00714.29
5.6.320.0070.00714.11
5.6.310.0030.00714.30
5.6.300.0070.00714.20
5.6.290.0000.01214.37
5.6.280.0080.03517.79
5.6.270.0040.00814.27
5.6.260.0040.01414.55
5.6.250.0070.01114.12
5.6.240.0040.01514.15
5.6.230.0000.01214.34
5.6.220.0110.00414.38
5.6.210.0020.04517.58
5.6.200.0070.04016.15
5.6.190.0030.02817.45
5.6.180.0150.02117.57
5.6.170.0160.03817.47
5.6.160.0070.04417.45
5.6.150.0050.04516.24
5.6.140.0070.02516.31
5.6.130.0020.03016.14
5.6.120.0080.02517.73
5.6.110.0030.03617.74
5.6.100.0150.03717.79
5.6.90.0100.04017.60
5.6.80.0050.04717.38
5.6.70.2320.01817.42
5.6.60.0000.01013.98
5.6.50.0030.00914.13
5.6.40.0000.01314.17
5.6.30.0030.00914.07
5.6.20.0000.01414.20
5.6.10.0000.01613.91
5.6.00.0060.00914.34
5.5.380.0100.00313.94
5.5.370.0000.00914.16
5.5.360.0000.01114.43
5.5.350.0100.01817.35
5.5.340.0070.03916.20
5.5.330.0050.05117.41
5.5.320.0150.04317.19
5.5.310.0220.04017.40
5.5.300.0140.03016.13
5.5.290.0030.02816.00
5.5.280.0040.03617.37
5.5.270.0020.02517.51
5.5.260.0070.04317.55
5.5.250.0050.03617.59
5.5.240.0050.03317.24
5.5.230.0070.01014.20
5.5.220.0100.00713.82
5.5.210.0060.00613.88
5.5.200.0080.00514.02
5.5.190.0070.01014.09
5.5.180.0130.00614.17
5.5.170.0060.00314.09
5.5.160.0030.01314.11
5.5.150.0030.01014.27
5.5.140.0040.01214.05
5.5.130.0030.00614.42
5.5.120.0050.00914.13
5.5.110.0000.01013.72
5.5.100.0030.01414.07
5.5.90.0060.01313.84
5.5.80.0040.01214.29
5.5.70.0070.00713.98
5.5.60.0070.00314.28
5.5.50.0070.00413.75
5.5.40.0080.00613.73
5.5.30.0040.01113.72
5.5.20.0040.00814.25
5.5.10.0090.00414.17
5.5.00.0030.00513.92
5.4.450.0360.02115.11
5.4.440.0520.02115.34
5.4.430.0430.02515.25
5.4.420.0450.02615.15
5.4.410.0030.03315.04
5.4.400.0060.03014.79
5.4.390.0100.03414.87
5.4.380.0150.02414.52
5.4.370.0130.02514.84
5.4.360.0050.03114.57
5.4.350.0070.03214.71
5.4.340.0100.02714.83
5.4.330.0070.00410.94
5.4.320.0040.02211.70
5.4.310.0030.02511.71
5.4.300.0050.02011.71
5.4.290.0030.02311.54
5.4.280.0050.02111.75
5.4.270.0070.02311.59
5.4.260.0040.02611.62
5.4.250.0070.02111.58
5.4.240.0090.01911.72
5.4.230.0030.02311.56
5.4.220.0060.02011.57
5.4.210.0060.02111.56
5.4.200.0040.02311.59
5.4.190.0040.02211.63
5.4.180.0060.02111.53
5.4.170.0030.02411.65
5.4.160.0070.02011.66
5.4.150.0060.01911.42
5.4.140.0050.02111.42
5.4.130.0070.01711.50
5.4.120.0020.02711.32
5.4.110.0060.02011.42
5.4.100.0070.01811.28
5.4.90.0040.02111.45
5.4.80.0050.02311.49
5.4.70.0050.02011.50
5.4.60.0030.02711.53
5.4.50.0040.02511.44
5.4.40.0070.02111.42
5.4.30.0080.02011.29
5.4.20.0040.02311.29
5.4.10.0050.02211.46
5.4.00.0020.02211.10
5.3.290.0050.02411.70
5.3.280.0020.02611.58
5.3.270.0020.02811.52
5.3.260.0060.02411.64
5.3.250.0040.02111.60
5.3.240.0070.01911.43
5.3.230.0020.02211.57
5.3.220.0040.02411.40
5.3.210.0050.02511.49
5.3.200.0040.02011.43
5.3.190.0040.02111.52
5.3.180.0040.02311.63
5.3.170.0070.02211.62
5.3.160.0060.02211.56
5.3.150.0030.02311.60
5.3.140.0050.02311.57
5.3.130.0040.02011.45
5.3.120.0050.02111.54
5.3.110.0050.02011.58
5.3.100.0020.02611.18
5.3.90.0050.02311.23
5.3.80.0020.02311.09
5.3.70.0050.02411.23
5.3.60.0060.02311.29
5.3.50.0040.02311.17
5.3.40.0070.01911.08
5.3.30.0040.02111.19
5.3.20.0040.02110.95
5.3.10.0050.01810.92
5.3.00.0020.02110.91
5.2.170.0060.0329.15
5.2.160.0080.0339.14
5.2.150.0050.0319.15
5.2.140.0050.0309.14
5.2.130.0060.0289.11
5.2.120.0050.0289.11
5.2.110.0020.0329.11
5.2.100.0060.0279.12
5.2.90.0040.0309.11
5.2.80.0030.0319.10
5.2.70.0040.0319.10
5.2.60.0050.0299.05
5.2.50.0040.0309.03
5.2.40.0050.0289.00
5.2.30.0130.0308.98
5.2.20.0070.0288.99
5.2.10.0070.0388.92
5.2.00.0070.0308.77
5.1.60.0030.0268.06
5.1.50.0050.0258.06
5.1.40.0020.0268.05
5.1.30.0040.0258.39
5.1.20.0070.0238.42
5.1.10.0050.0248.14
5.1.00.0050.0288.14
5.0.50.0030.0246.62
5.0.40.0040.0256.48
5.0.30.0070.0276.29
5.0.20.0030.0216.27
5.0.10.0010.0216.24
5.0.00.0040.0376.24
4.4.90.0050.0164.77
4.4.80.0040.0224.76
4.4.70.0030.0154.76
4.4.60.0020.0234.76
4.4.50.0050.0184.77
4.4.40.0040.0244.71
4.4.30.0030.0164.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0030.0244.76
4.3.110.0010.0174.67
4.3.100.0040.0144.66
4.3.90.0030.0144.63
4.3.80.0030.0314.58
4.3.70.0040.0124.63
4.3.60.0020.0154.62
4.3.50.0020.0174.63
4.3.40.0020.0264.54
4.3.30.0040.0153.30
4.3.20.0010.0173.28
4.3.10.0010.0173.22
4.3.00.0330.03015.11

preferences:
84.08 ms | 400 KiB | 5 Q