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, PHP_EOL); 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.0140.00318.30
8.3.50.0120.00721.97
8.3.40.0110.00418.79
8.3.30.0090.00619.04
8.3.20.0040.00420.38
8.3.10.0060.00321.97
8.3.00.0000.00822.45
8.2.180.0000.01418.13
8.2.170.0090.01222.96
8.2.160.0140.00020.99
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0070.00017.50
8.2.110.0040.00421.05
8.2.100.0000.01117.78
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0000.00817.89
8.2.50.0090.00018.09
8.2.40.0040.00418.28
8.2.30.0000.00718.14
8.2.20.0000.00717.66
8.2.10.0050.00217.76
8.2.00.0070.00017.75
8.1.280.0110.00425.92
8.1.270.0050.00323.83
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.46
8.1.230.0040.00719.21
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0060.00317.22
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0030.00618.64
8.1.160.0000.00721.94
8.1.150.0070.00018.71
8.1.140.0040.00417.51
8.1.130.0030.00317.84
8.1.120.0040.00417.45
8.1.110.0000.00717.46
8.1.100.0040.00417.45
8.1.90.0030.00517.43
8.1.80.0020.00517.46
8.1.70.0070.00017.46
8.1.60.0030.00617.55
8.1.50.0000.00717.56
8.1.40.0000.00817.55
8.1.30.0000.00817.56
8.1.20.0040.00417.62
8.1.10.0060.00317.55
8.1.00.0000.00817.47
8.0.300.0040.00418.77
8.0.290.0000.00816.71
8.0.280.0080.00018.41
8.0.270.0030.00317.30
8.0.260.0000.00716.89
8.0.250.0070.00017.04
8.0.240.0030.00616.93
8.0.230.0030.00316.95
8.0.220.0050.00316.97
8.0.210.0030.00316.99
8.0.200.0000.00717.02
8.0.190.0000.01017.03
8.0.180.0050.00317.00
8.0.170.0090.00016.98
8.0.160.0070.00016.93
8.0.150.0000.00716.88
8.0.140.0040.00316.87
8.0.130.0030.00313.39
8.0.120.0040.00416.83
8.0.110.0040.00416.79
8.0.100.0070.00017.01
8.0.90.0040.00416.77
8.0.80.0090.00917.03
8.0.70.0000.00716.83
8.0.60.0070.00016.84
8.0.50.0030.00317.03
8.0.30.0100.01217.04
8.0.20.0100.01017.40
8.0.10.0020.00516.96
8.0.00.0100.00816.79
7.4.330.0050.00015.20
7.4.320.0030.00316.58
7.4.300.0000.00616.62
7.4.290.0030.00316.57
7.4.280.0000.00716.48
7.4.270.0030.00316.64
7.4.260.0000.00716.37
7.4.250.0080.00016.54
7.4.240.0000.00716.54
7.4.230.0030.00316.42
7.4.220.0150.00316.69
7.4.210.0100.00316.61
7.4.200.0000.00716.42
7.4.190.0070.00016.42
7.4.160.0120.00616.43
7.4.150.0060.01217.40
7.4.140.0060.01217.86
7.4.130.0110.00516.55
7.4.120.0130.00516.46
7.4.110.0070.01016.61
7.4.100.0130.01016.66
7.4.90.0130.00416.65
7.4.80.0100.01319.39
7.4.70.0170.00016.61
7.4.60.0100.01016.54
7.4.50.0000.00516.50
7.4.40.0030.01422.77
7.4.30.0150.00616.62
7.4.10.0040.01414.89
7.4.00.0070.01014.95
7.3.330.0050.00013.24
7.3.320.0000.00513.24
7.3.310.0070.00016.36
7.3.300.0030.00316.39
7.3.290.0030.01216.38
7.3.280.0100.00516.38
7.3.270.0030.01317.40
7.3.260.0100.00716.49
7.3.250.0130.00516.41
7.3.240.0030.01316.34
7.3.230.0060.01116.59
7.3.210.0100.00716.32
7.3.200.0060.01419.39
7.3.190.0030.01316.36
7.3.180.0000.01716.47
7.3.170.0060.00916.54
7.3.160.0150.00616.40
7.3.130.0100.00714.81
7.3.120.0030.01314.94
7.3.110.0080.00615.02
7.3.100.0060.00914.95
7.3.90.0070.00814.71
7.3.80.0070.00714.99
7.3.70.0070.00314.82
7.3.60.0080.00614.89
7.3.50.0080.00814.86
7.3.40.0030.01214.97
7.3.30.0060.00514.97
7.3.20.0080.00716.84
7.3.10.0050.00716.70
7.3.00.0030.00916.69
7.2.330.0090.01316.55
7.2.320.0120.01116.51
7.2.310.0070.01416.66
7.2.300.0130.00316.73
7.2.290.0040.01216.50
7.2.260.0030.01514.91
7.2.250.0080.00914.86
7.2.240.0080.00814.93
7.2.230.0110.00315.12
7.2.220.0070.00914.90
7.2.210.0070.00915.12
7.2.200.0030.00915.18
7.2.190.0090.00614.81
7.2.180.0050.00714.91
7.2.170.0080.00715.07
7.2.160.0080.00714.97
7.2.150.0060.00616.92
7.2.140.0020.01016.81
7.2.130.0070.00616.96
7.2.120.0050.00716.86
7.2.110.0040.00816.77
7.2.100.0060.00616.87
7.2.90.0070.00716.94
7.2.80.0070.00816.95
7.2.70.0050.00716.85
7.2.60.0080.00716.89
7.2.50.0070.00916.94
7.2.40.0050.01116.93
7.2.30.0070.00616.90
7.2.20.0050.00816.98
7.2.10.0070.00716.87
7.2.00.0090.00516.88
7.1.330.0090.00715.79
7.1.320.0100.00615.82
7.1.310.0020.01315.88
7.1.300.0060.00415.74
7.1.290.0000.01115.88
7.1.280.0020.01215.85
7.1.270.0030.01015.82
7.1.260.0020.01015.74
7.1.250.0070.00415.83
7.1.240.0090.00615.70
7.1.230.0030.00815.77
7.1.220.0090.00515.78
7.1.210.0090.00315.63
7.1.200.0050.00915.75
7.1.190.0050.00915.78
7.1.180.0020.01215.97
7.1.170.0080.00515.70
7.1.160.0080.00515.73
7.1.150.0040.00815.85
7.1.140.0060.00615.87
7.1.130.0020.00815.80
7.1.120.0050.01015.81
7.1.110.0080.00615.59
7.1.100.0080.00315.82
7.1.90.0050.00715.83
7.1.80.0060.00715.73
7.1.70.0040.00916.37
7.1.60.0060.00917.16
7.1.50.0110.00416.12
7.1.40.0050.01215.93
7.1.30.0040.01115.68
7.1.20.0060.00715.64
7.1.10.0030.01015.72
7.1.00.0070.02917.88
7.0.330.0060.00815.44
7.0.320.0100.00515.32
7.0.310.0050.00915.34
7.0.300.0050.00715.49
7.0.290.0030.00515.41
7.0.280.0080.00515.42
7.0.270.0040.00715.08
7.0.260.0060.00715.33
7.0.250.0050.00715.33
7.0.240.0030.01215.32
7.0.230.0030.01015.36
7.0.220.0060.00715.40
7.0.210.0010.01115.15
7.0.200.0050.00715.89
7.0.190.0070.01015.22
7.0.180.0040.01215.39
7.0.170.0070.00915.42
7.0.160.0030.01115.39
7.0.150.0030.00815.44
7.0.140.0040.02617.55
7.0.130.0110.00315.39
7.0.120.0050.00915.42
7.0.110.0070.00715.40
7.0.100.0050.00915.19
7.0.90.0050.00715.42
7.0.80.0030.00815.47
7.0.70.0020.01315.46
7.0.60.0060.01616.93
7.0.50.0100.02016.18
7.0.40.0070.01915.64
7.0.30.0110.02215.57
7.0.20.0090.02015.63
7.0.10.0080.02015.81
7.0.00.0040.03315.67
5.6.400.0060.00914.25
5.6.390.0030.00714.71
5.6.380.0010.01214.19
5.6.370.0050.00914.20
5.6.360.0050.00714.37
5.6.350.0020.01114.36
5.6.340.0030.00914.28
5.6.330.0050.00914.12
5.6.320.0050.00714.42
5.6.310.0070.00714.25
5.6.300.0080.00614.41
5.6.290.0050.00714.29
5.6.280.0090.02716.50
5.6.270.0090.00714.37
5.6.260.0070.00814.29
5.6.250.0000.01614.25
5.6.240.0050.00814.33
5.6.230.0070.00714.14
5.6.220.0060.00514.13
5.6.210.0050.03116.36
5.6.200.0050.02415.52
5.6.190.0110.01916.29
5.6.180.0080.02216.42
5.6.170.0120.03316.36
5.6.160.0080.03016.38
5.6.150.0050.01815.61
5.6.140.0090.02915.72
5.6.130.0040.02215.67
5.6.120.0040.03316.70
5.6.110.0060.03516.45
5.6.100.0090.03016.52
5.6.90.0090.03216.45
5.6.80.0030.03316.31
5.6.70.0090.03416.18
5.6.60.0030.00914.06
5.6.50.0050.00814.22
5.6.40.0050.00614.46
5.6.30.0060.00714.32
5.6.20.0080.00614.27
5.6.10.0050.00514.46
5.6.00.0030.01114.05
5.5.380.0060.00512.57
5.5.370.0030.00912.38
5.5.360.0070.00712.63
5.5.350.0080.02815.30
5.5.340.0050.03514.35
5.5.330.0060.03015.16
5.5.320.0150.02715.18
5.5.310.0100.03215.36
5.5.300.0030.03314.36
5.5.290.0080.02914.32
5.5.280.0070.01715.28
5.5.270.0060.02815.36
5.5.260.0020.01815.38
5.5.250.0090.02915.33
5.5.240.0060.01814.93
5.5.230.0090.00512.65
5.5.220.0060.00712.47
5.5.210.0040.00712.32
5.5.200.0060.00512.69
5.5.190.0070.00312.56
5.5.180.0020.00812.63
5.5.170.0020.01112.26
5.5.160.0050.00812.60
5.5.150.0010.01312.31
5.5.140.0020.01312.27
5.5.130.0030.00912.31
5.5.120.0040.00612.57
5.5.110.0040.00412.45
5.5.100.0030.00912.59
5.5.90.0000.01312.44
5.5.80.0040.00812.50
5.5.70.0050.00612.45
5.5.60.0040.00912.38
5.5.50.0050.00712.61
5.5.40.0060.00712.49
5.5.30.0060.00612.38
5.5.20.0060.00512.42
5.5.10.0020.01012.50
5.5.00.0040.00912.59
5.4.450.0300.01814.57
5.4.440.0100.02014.43
5.4.430.0190.02314.53
5.4.420.0250.01814.57
5.4.410.0250.01414.44
5.4.400.0110.01414.48
5.4.390.0260.01614.37
5.4.380.0190.02514.28
5.4.370.0140.02114.28
5.4.360.0120.01914.24
5.4.350.0130.02614.29
5.4.340.0180.02714.28
5.4.330.0040.00711.95
5.4.320.0020.01712.21
5.4.310.0050.01712.09
5.4.300.0090.01312.20
5.4.290.0060.01812.22
5.4.280.0040.01512.15
5.4.270.0040.01812.22
5.4.260.0050.01712.10
5.4.250.0040.01812.09
5.4.240.0050.01612.15
5.4.230.0040.01612.17
5.4.220.0030.01812.13
5.4.210.0040.01612.15
5.4.200.0040.01712.11
5.4.190.0030.01812.11
5.4.180.0040.01612.17
5.4.170.0050.01312.10
5.4.160.0060.01812.05
5.4.150.0050.01512.20
5.4.140.0040.01711.99
5.4.130.0030.01612.04
5.4.120.0080.01112.05
5.4.110.0040.01712.08
5.4.100.0070.01411.91
5.4.90.0060.01712.01
5.4.80.0030.01812.08
5.4.70.0060.01912.01
5.4.60.0050.01412.02
5.4.50.0040.02011.91
5.4.40.0060.01411.97
5.4.30.0060.01511.93
5.4.20.0060.01511.95
5.4.10.0080.01112.07
5.4.00.0050.01611.80
5.3.290.0050.01812.22
5.3.280.0040.01612.15
5.3.270.0070.01512.20
5.3.260.0040.01612.17
5.3.250.0040.01612.15
5.3.240.0040.01712.05
5.3.230.0050.01512.16
5.3.220.0060.01712.01
5.3.210.0070.01512.11
5.3.200.0050.01812.08
5.3.190.0050.01712.07
5.3.180.0040.01612.15
5.3.170.0040.01812.15
5.3.160.0060.01612.10
5.3.150.0020.01812.14
5.3.140.0060.01612.16
5.3.130.0040.01712.14
5.3.120.0070.01412.14
5.3.110.0070.01412.14
5.3.100.0060.01611.96
5.3.90.0060.01511.94
5.3.80.0030.01711.90
5.3.70.0040.01611.89
5.3.60.0050.01611.92
5.3.50.0060.01611.88
5.3.40.0050.01611.83
5.3.30.0050.01711.94
5.3.20.0040.01611.77
5.3.10.0030.01811.74
5.3.00.0030.01711.72
5.2.170.0040.0199.41
5.2.160.0040.0169.35
5.2.150.0050.0189.27
5.2.140.0040.0199.21
5.2.130.0020.0219.18
5.2.120.0050.0169.32
5.2.110.0060.0169.30
5.2.100.0040.0199.30
5.2.90.0040.0199.14
5.2.80.0050.0199.14
5.2.70.0040.0189.21
5.2.60.0040.0189.12
5.2.50.0060.0159.21
5.2.40.0050.0169.21
5.2.30.0050.0189.13
5.2.20.0040.0199.08
5.2.10.0050.0169.05
5.2.00.0040.0168.98
5.1.60.0040.0138.62
5.1.50.0080.0148.62
5.1.40.0040.0178.61
5.1.30.0050.0148.78
5.1.20.0040.0178.80
5.1.10.0060.0158.66
5.1.00.0030.0168.66
5.0.50.0030.0127.90
5.0.40.0030.0117.83
5.0.30.0050.0197.73
5.0.20.0040.0117.72
5.0.10.0030.0147.71
5.0.00.0040.0177.71
4.4.90.0020.0096.98
4.4.80.0030.0096.96
4.4.70.0040.0106.97
4.4.60.0020.0106.97
4.4.50.0020.0126.97
4.4.40.0040.0146.94
4.4.30.0050.0086.97
4.4.20.0040.0107.01
4.4.10.0020.0107.01
4.4.00.0020.0166.97
4.3.110.0050.0096.92
4.3.100.0040.0106.92
4.3.90.0050.0136.91
4.3.80.0010.0196.88
4.3.70.0030.0096.90
4.3.60.0030.0096.90
4.3.50.0020.0096.90
4.3.40.0000.0166.86
4.3.30.0010.0116.24
4.3.20.0000.0126.23
4.3.10.0030.0096.20
4.3.00.0020.01012.14

preferences:
50.11 ms | 401 KiB | 5 Q