3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = file_get_contents("http://www.google.com/"); if (preg_match('~<body[^>]*>(.*?)</body>~si', $text, $body)){ echo $body[1]; } ?>

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.70.0070.01117.13
8.3.60.0070.01118.93
8.3.50.0140.00521.23
8.3.40.0120.00319.35
8.3.30.0110.00419.21
8.3.20.0050.00320.54
8.3.10.0080.00022.14
8.3.00.0080.00023.98
8.2.190.0030.01716.88
8.2.180.0150.00718.79
8.2.170.0130.00322.96
8.2.160.0070.01120.82
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00021.36
8.2.120.0000.00826.35
8.2.110.0040.00721.38
8.2.100.0090.00318.18
8.2.90.0040.00419.20
8.2.80.0040.00417.97
8.2.70.0060.00317.88
8.2.60.0030.00618.04
8.2.50.0040.00418.09
8.2.40.0040.00422.61
8.2.30.0030.00519.59
8.2.20.0080.00018.00
8.2.10.0040.00418.28
8.2.00.0030.00518.08
8.1.280.0080.00825.92
8.1.270.0090.00622.36
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0120.00622.58
8.1.230.0040.00817.95
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0030.00617.60
8.1.190.0040.00417.60
8.1.180.0050.00318.10
8.1.170.0060.00318.89
8.1.160.0040.00420.83
8.1.150.0050.00320.71
8.1.140.0040.00419.71
8.1.130.0040.00417.70
8.1.120.0040.00417.73
8.1.110.0040.00417.62
8.1.100.0000.00717.68
8.1.90.0040.00417.71
8.1.80.0040.00417.67
8.1.70.0030.00317.63
8.1.60.0000.00817.77
8.1.50.0040.00417.74
8.1.40.0060.00317.70
8.1.30.0050.00517.87
8.1.20.0040.00417.81
8.1.10.0030.00517.75
8.1.00.0000.00917.66
8.0.300.0040.00418.77
8.0.290.0040.00416.98
8.0.280.0040.00418.60
8.0.270.0020.00517.32
8.0.260.0000.00817.26
8.0.250.0000.00717.26
8.0.240.0000.00717.39
8.0.230.0000.00817.26
8.0.220.0020.00517.16
8.0.210.0000.00817.29
8.0.200.0000.00717.26
8.0.190.0000.00817.26
8.0.180.0050.00317.33
8.0.170.0060.00317.15
8.0.160.0000.00717.24
8.0.150.0070.00217.18
8.0.140.0050.00317.25
8.0.130.0030.00313.79
8.0.120.0050.00317.27
8.0.110.0050.00317.43
8.0.100.0080.00017.32
8.0.90.0030.00517.25
8.0.80.0040.01217.29
8.0.70.0000.00817.30
8.0.60.0050.00317.43
8.0.50.0040.00417.34
8.0.30.0160.00517.36
8.0.20.0110.00917.49
8.0.10.0030.00517.27
8.0.00.0130.00817.12
7.4.330.0050.00017.11
7.4.320.0030.00316.80
7.4.300.0080.00016.84
7.4.290.0030.00316.82
7.4.280.0040.00416.77
7.4.270.0070.00016.84
7.4.260.0000.00716.79
7.4.250.0080.00016.93
7.4.240.0030.00517.01
7.4.230.0030.00316.80
7.4.220.0140.00316.98
7.4.210.0130.01016.98
7.4.200.0040.00417.07
7.4.160.0070.01116.78
7.4.150.0190.00617.40
7.4.140.0140.01117.86
7.4.130.0180.00316.94
7.4.120.0120.00616.83
7.4.110.0130.00616.66
7.4.100.0160.00616.67
7.4.90.0090.00916.73
7.4.80.0100.00719.39
7.4.70.0090.00916.84
7.4.60.0170.00016.86
7.4.50.0060.00616.96
7.4.40.0110.00716.83
7.4.30.0120.00916.82
7.4.00.0090.00915.25
7.3.330.0060.00013.50
7.3.320.0030.00313.63
7.3.310.0000.00816.56
7.3.300.0070.00016.59
7.3.290.0090.00716.66
7.3.280.0060.01316.66
7.3.270.0130.00917.40
7.3.260.0150.00316.52
7.3.250.0150.00616.72
7.3.240.0080.01116.83
7.3.230.0060.01216.71
7.3.210.0070.01016.79
7.3.200.0090.00919.39
7.3.190.0200.00316.53
7.3.180.0030.01716.72
7.3.170.0170.00616.50
7.3.160.0090.00816.51
7.3.120.0100.00615.09
7.3.110.0060.01215.11
7.3.100.0060.01015.24
7.3.90.0080.00415.06
7.3.80.0070.00714.83
7.3.70.0030.01015.15
7.3.60.0070.01015.14
7.3.50.0000.01015.25
7.3.40.0040.01115.17
7.3.30.0000.01415.07
7.3.20.0030.00617.04
7.3.10.0080.00417.05
7.3.00.0100.00417.07
7.2.330.0100.01016.93
7.2.320.0130.00716.77
7.2.310.0000.01716.68
7.2.300.0100.01416.88
7.2.290.0150.00816.97
7.2.250.0020.01615.33
7.2.240.0070.01315.22
7.2.230.0030.01015.36
7.2.220.0000.01115.31
7.2.210.0040.01115.27
7.2.200.0120.00315.30
7.2.190.0050.00515.25
7.2.180.0120.00315.32
7.2.170.0070.00715.37
7.2.60.0140.00316.92
7.2.00.0050.00519.83
7.1.330.0070.01016.13
7.1.320.0070.00316.31
7.1.310.0090.00916.34
7.1.300.0030.00716.32
7.1.290.0070.00715.89
7.1.280.0070.01116.15
7.1.270.0060.00615.97
7.1.260.0040.00916.28
7.1.200.0030.01016.08
7.1.100.0040.00918.35
7.1.70.0000.00717.30
7.1.60.0110.01519.28
7.1.50.0130.00417.15
7.1.00.0030.07722.73
7.0.200.0050.00517.27
7.0.60.0100.08022.14
7.0.50.0170.05018.14
7.0.40.0130.06320.56
7.0.30.0470.07020.49
7.0.20.0300.07020.46
7.0.10.0030.04720.65
7.0.00.0030.04320.51
5.6.280.0030.07721.33
5.6.210.0170.05721.13
5.6.200.0030.05318.57
5.6.190.0130.03721.06
5.6.180.0170.05321.07
5.6.170.0030.05320.98
5.6.160.0030.06020.85
5.6.150.0030.06018.64
5.6.140.0100.06018.59
5.6.130.0030.08018.57
5.6.120.0070.03721.34
5.6.110.0100.06721.38
5.6.100.0200.06021.48
5.6.90.0000.06321.40
5.6.80.0030.05020.67
5.5.350.3030.03320.67
5.5.340.0230.06318.36
5.5.330.0070.08320.73
5.5.320.0670.06020.63
5.5.310.0370.07720.63
5.5.300.0030.04018.27
5.5.290.0070.08018.36
5.5.280.0130.07021.05
5.5.270.0070.05721.14
5.5.260.0070.08721.00
5.5.250.0100.07320.96
5.5.240.0130.05320.58

preferences:
42.16 ms | 401 KiB | 5 Q