3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_title($url){ $fp = file_get_contents($url); if (!$fp) return null; $res = preg_match("/<title>(.*)<\/title>/siU", $fp, $title_matches); if (!$res) return null; $title = preg_replace('/\s+/', ' ', $title_matches[1]); $title = trim($title); return $title; } get_title("http://google.com");

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.0040.01118.80
8.3.50.0120.00316.71
8.3.40.0060.00919.04
8.3.30.0090.00618.88
8.3.20.0050.00320.76
8.3.10.0040.00423.77
8.3.00.0050.00317.75
8.2.180.0070.00716.88
8.2.170.0090.00622.96
8.2.160.0070.00719.20
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00422.39
8.2.120.0040.00426.35
8.2.110.0060.00321.15
8.2.100.0040.00818.05
8.2.90.0000.00819.30
8.2.80.0080.00017.97
8.2.70.0000.00817.75
8.2.60.0040.00418.15
8.2.50.0000.01218.10
8.2.40.0040.00420.67
8.2.30.0000.00819.30
8.2.20.0050.00317.76
8.2.10.0050.00318.18
8.2.00.0040.00418.16
8.1.280.0080.00825.92
8.1.270.0070.00724.00
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0090.00022.77
8.1.230.0040.00717.95
8.1.220.0000.00817.89
8.1.210.0050.00318.77
8.1.200.0060.00317.38
8.1.190.0040.00417.48
8.1.180.0000.00918.10
8.1.170.0080.00018.75
8.1.160.0060.00321.05
8.1.150.0070.00019.13
8.1.140.0070.00019.65
8.1.130.0000.00717.82
8.1.120.0050.00317.56
8.1.110.0060.00317.57
8.1.100.0050.00317.65
8.1.90.0000.00817.63
8.1.80.0000.00717.54
8.1.70.0040.00417.51
8.1.60.0000.00817.71
8.1.50.0000.00817.68
8.1.40.0070.00317.63
8.1.30.0030.00517.77
8.1.20.0040.00417.79
8.1.10.0040.00417.55
8.1.00.0000.00817.49
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.57
8.0.270.0070.00017.42
8.0.260.0040.00417.50
8.0.250.0040.00417.24
8.0.240.0000.00717.14
8.0.230.0040.00417.09
8.0.220.0000.00717.05
8.0.210.0040.00417.18
8.0.200.0030.00317.15
8.0.190.0060.00317.16
8.0.180.0040.00417.15
8.0.170.0050.00317.22
8.0.160.0000.00917.11
8.0.150.0000.00717.21
8.0.140.0000.00817.27
8.0.130.0030.00313.74
8.0.120.0040.00417.18
8.0.110.0000.00817.25
8.0.100.0040.00417.16
8.0.90.0080.00017.05
8.0.80.0140.00717.26
8.0.70.0000.00817.16
8.0.60.0070.00017.19
8.0.50.0040.00417.15
8.0.30.0140.00317.28
8.0.20.0130.00617.40
8.0.10.0000.00717.41
8.0.00.0030.01316.94
7.4.330.0030.00315.08
7.4.320.0000.00616.60
7.4.300.0000.00616.53
7.4.290.0000.00716.63
7.4.280.0000.00816.61
7.4.270.0000.00716.72
7.4.260.0040.00416.70
7.4.250.0040.00416.69
7.4.240.0050.00216.79
7.4.230.0030.00316.72
7.4.220.0140.00916.74
7.4.210.0120.00916.80
7.4.200.0080.00016.93
7.4.160.0130.00316.87
7.4.150.0140.00317.40
7.4.140.0130.01117.86
7.4.130.0100.00816.69
7.4.120.0120.00616.78
7.4.110.0140.00316.70
7.4.100.0090.00916.75
7.4.90.0090.00917.00
7.4.80.0080.01219.39
7.4.70.0030.02016.68
7.4.60.0060.01816.79
7.4.50.0100.00616.79
7.4.40.0030.01316.70
7.4.30.0100.00716.73
7.4.00.0070.01015.12
7.3.330.0080.00013.41
7.3.320.0050.00013.50
7.3.310.0080.00016.72
7.3.300.0050.00216.66
7.3.290.0000.00816.65
7.3.280.0120.00816.63
7.3.270.0140.00417.40
7.3.260.0090.01216.78
7.3.250.0120.01116.61
7.3.240.0120.00716.66
7.3.230.0090.01716.39
7.3.210.0030.01516.43
7.3.200.0140.00316.68
7.3.190.0080.00916.56
7.3.180.0090.01216.70
7.3.170.0130.00616.61
7.3.160.0030.01416.50
7.3.10.0080.00316.49
7.3.00.0110.00316.88
7.2.330.0090.00916.89
7.2.320.0120.00916.66
7.2.310.0030.01616.98
7.2.300.0040.01416.59
7.2.290.0090.00916.62
7.2.130.0060.00317.13
7.2.120.0060.00916.93
7.2.110.0070.01017.05
7.2.100.0040.00817.05
7.2.90.0120.00617.25
7.2.80.0000.01217.18
7.2.70.0040.00817.16
7.2.60.0060.00817.25
7.2.50.0060.00617.09
7.2.40.0060.00617.25
7.2.30.0070.00717.20
7.2.20.0040.01117.00
7.2.10.0040.00817.18
7.2.00.0070.00818.48
7.1.250.0080.00816.00
7.1.200.0060.00916.23
7.1.100.0070.00718.42
7.1.70.0060.00317.62
7.1.60.0080.00819.87
7.1.50.0130.01017.21
7.1.00.0070.07722.63
7.0.200.0200.00715.04
7.0.80.0200.04720.26
7.0.70.1270.06720.40
7.0.60.1200.06020.45
7.0.50.1170.06320.59
7.0.40.1230.05020.62
7.0.30.1200.05720.55
7.0.20.1230.05720.70
7.0.10.1270.05320.60
7.0.00.1170.05720.61
5.6.280.0070.06721.47
5.6.230.0930.05021.08
5.6.220.1170.04721.07
5.6.210.1400.05021.04
5.6.200.1030.06321.49
5.6.190.1000.05721.36
5.6.180.1000.05721.45
5.6.170.0900.07021.52
5.6.160.0970.05721.36
5.6.150.1030.05321.43
5.6.140.1030.05321.41
5.6.130.1070.06021.47
5.6.120.0070.06721.38
5.6.110.0600.06721.41
5.6.100.0930.06721.52
5.6.90.0930.06721.45
5.6.80.1030.05020.88
5.6.70.0970.05720.88
5.6.60.0970.06020.88
5.6.50.1030.05020.91
5.6.40.1030.05020.82
5.6.30.1070.05020.90
5.6.20.1000.06720.83
5.6.10.1070.05320.81
5.6.00.1070.05020.72
5.5.370.0130.05720.72
5.5.360.1130.09320.77
5.5.350.1070.05320.99
5.5.340.1100.04721.26
5.5.330.1000.05721.15
5.5.320.1030.06321.14
5.5.310.1000.05721.23
5.5.300.1000.05721.29
5.5.290.1100.06321.24
5.5.280.0200.05321.27
5.5.270.1070.05721.27
5.5.260.1000.05721.24
5.5.250.1070.04720.98
5.5.240.0970.06020.64
5.5.230.1030.05320.53
5.5.220.0970.06020.52
5.5.210.0870.06320.64
5.5.200.1030.05320.57
5.5.190.0970.06020.52
5.5.180.1000.05320.59
5.5.160.1000.05320.61
5.5.150.1170.04320.71
5.5.140.1030.05320.57
5.5.130.0900.06320.73
5.5.120.0930.05720.55
5.5.110.1130.06320.56
5.5.100.0970.05720.38
5.5.90.0870.06720.48
5.5.80.1030.05020.55
5.5.70.1030.05020.46
5.5.60.0970.05720.36
5.5.50.1070.07320.56
5.5.40.0930.06020.49
5.5.30.1100.04320.45
5.5.20.1100.05020.39
5.5.10.1070.06720.53
5.5.00.0900.06020.50

preferences:
67.54 ms | 400 KiB | 5 Q