3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = file_get_contents('http://www.google.com/'); $dom = new DOMDocument(); @$dom->loadHTML($html); $titles = $dom->getElementsByTagName('title'); $title = $titles->item(0)->nodeValue; var_dump($title);

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.0070.00718.68
8.3.50.0110.01121.32
8.3.40.0130.00319.17
8.3.30.0160.00419.18
8.3.20.0110.00420.54
8.3.10.0080.00024.09
8.3.00.0000.00822.88
8.2.180.0160.00616.63
8.2.170.0090.00622.96
8.2.160.0070.00720.50
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0100.00017.75
8.2.110.0070.00321.00
8.2.100.0090.00318.00
8.2.90.0040.00419.47
8.2.80.0000.00818.00
8.2.70.0030.00617.88
8.2.60.0000.00818.18
8.2.50.0040.00418.07
8.2.40.0040.00421.43
8.2.30.0030.00620.15
8.2.20.0040.00418.01
8.2.10.0000.00718.43
8.2.00.0050.00218.19
8.1.280.0140.00325.92
8.1.270.0050.00320.63
8.1.260.0070.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00621.61
8.1.230.0060.00617.61
8.1.220.0080.00017.91
8.1.210.0050.00318.77
8.1.200.0030.00717.59
8.1.190.0060.00317.60
8.1.180.0030.00518.10
8.1.170.0110.00018.71
8.1.160.0070.00022.07
8.1.150.0000.00818.97
8.1.140.0050.00317.57
8.1.130.0000.00717.83
8.1.120.0000.00717.64
8.1.110.0070.00017.50
8.1.100.0070.00017.64
8.1.90.0070.00017.49
8.1.80.0040.00417.60
8.1.70.0030.00317.73
8.1.60.0040.00417.74
8.1.50.0000.00917.66
8.1.40.0030.00517.80
8.1.30.0000.00817.76
8.1.20.0000.00817.82
8.1.10.0030.00517.68
8.1.00.0000.00817.71
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0040.00418.75
8.0.270.0040.00417.61
8.0.260.0030.00317.41
8.0.250.0030.00517.18
8.0.240.0060.00317.34
8.0.230.0020.00517.20
8.0.220.0070.00017.23
8.0.210.0040.00417.16
8.0.200.0070.00017.20
8.0.190.0040.00417.25
8.0.180.0050.00217.05
8.0.170.0070.00017.26
8.0.160.0050.00217.13
8.0.150.0000.00717.00
8.0.140.0040.00417.13
8.0.130.0000.00613.74
8.0.120.0060.00317.21
8.0.110.0000.00817.35
8.0.100.0030.00517.24
8.0.90.0070.00017.09
8.0.80.0060.00917.30
8.0.70.0050.00317.27
8.0.60.0040.00417.27
8.0.50.0040.00417.34
8.0.30.0160.00617.34
8.0.20.0070.01217.48
8.0.10.0040.00417.20
8.0.00.0110.00816.99
7.4.330.0050.00015.39
7.4.320.0060.00016.60
7.4.300.0000.00616.59
7.4.290.0000.00816.81
7.4.280.0070.00016.82
7.4.270.0030.00316.57
7.4.260.0000.00716.79
7.4.250.0000.00816.78
7.4.240.0050.00216.77
7.4.230.0050.00216.89
7.4.220.0060.01216.96
7.4.210.0140.00316.76
7.4.200.0040.00416.82
7.4.160.0090.00616.65
7.4.150.0090.00917.40
7.4.140.0130.00817.86
7.4.130.0100.01016.66
7.4.120.0180.00516.84
7.4.110.0090.00916.72
7.4.100.0070.01117.00
7.4.90.0000.01816.68
7.4.80.0070.01119.39
7.4.70.0120.00616.89
7.4.60.0060.01216.82
7.4.50.0000.00516.89
7.4.40.0150.00316.77
7.4.30.0050.00816.87
7.4.00.0100.00815.29
7.3.330.0000.00513.32
7.3.320.0000.00513.48
7.3.310.0050.00316.63
7.3.300.0050.00216.58
7.3.290.0120.00716.49
7.3.280.0090.01216.59
7.3.270.0170.00017.40
7.3.260.0180.00916.44
7.3.250.0110.00716.49
7.3.240.0070.01416.60
7.3.230.0090.01516.52
7.3.210.0030.01416.38
7.3.200.0120.00619.39
7.3.190.0130.00316.63
7.3.180.0090.00916.59
7.3.170.0150.00316.44
7.3.160.0060.01216.58
7.3.120.0110.00714.57
7.3.110.0070.01115.11
7.3.100.0030.00714.79
7.3.90.0100.00314.92
7.3.80.0070.00715.10
7.3.70.0060.00314.71
7.3.60.0060.00615.07
7.3.50.0030.01214.93
7.3.40.0080.00414.76
7.3.30.0000.01414.74
7.3.20.0060.00616.44
7.3.10.0060.00916.86
7.3.00.0040.01116.85
7.2.330.0180.00016.92
7.2.320.0210.00317.00
7.2.310.0090.00916.70
7.2.300.0130.00516.61
7.2.290.0100.00716.92
7.2.250.0110.00815.26
7.2.240.0100.01015.29
7.2.230.0000.01715.34
7.2.220.0060.00915.41
7.2.210.0070.00714.91
7.2.200.0090.00314.96
7.2.190.0100.00315.36
7.2.180.0080.01115.24
7.2.170.0030.01315.34
7.2.80.0150.00616.47
7.2.60.0070.01116.77
7.2.00.0070.00719.40
7.1.330.0090.00616.03
7.1.320.0130.00016.09
7.1.310.0090.00616.15
7.1.300.0070.00716.06
7.1.290.0040.00815.97
7.1.280.0030.00915.98
7.1.270.0070.00715.70
7.1.260.0090.00615.69
7.1.200.0070.00715.96
7.1.100.0000.01118.66
7.1.70.0030.00617.18
7.1.60.0030.02020.03
7.1.50.0170.01434.80
7.1.00.0000.08022.63
7.0.200.0140.00315.02
7.0.60.0130.07720.14
7.0.50.0030.04018.34
7.0.40.0100.09020.60
7.0.30.0500.08320.51
7.0.20.0200.07720.49
7.0.10.0300.07720.49
7.0.00.0070.08320.47
5.6.280.0030.06721.38
5.6.210.0030.07020.93
5.6.200.0000.04318.48
5.6.190.0030.06321.07
5.6.180.0130.04320.94
5.6.170.0270.08020.88
5.6.160.0000.08320.85
5.6.150.0170.05718.58
5.6.140.0100.07018.41
5.6.130.0000.04718.73
5.6.120.0030.08721.54
5.6.110.0100.08021.34
5.6.100.0170.04021.50
5.6.90.0100.05321.31
5.6.80.0200.06020.77
5.6.70.2730.04320.72
5.5.350.0070.08720.85
5.5.340.0030.04018.27
5.5.330.0070.04020.90
5.5.320.0200.07320.66
5.5.310.0200.05720.65
5.5.300.0070.03718.25
5.5.290.0070.08018.34
5.5.280.0100.08021.00
5.5.270.0130.03321.28
5.5.260.0030.08321.27
5.5.250.0030.08321.11
5.5.240.0130.06320.54
5.4.450.0330.05319.71
5.4.440.0630.05319.84
5.4.430.0800.08319.68
5.4.420.0930.05719.68
5.4.410.0930.05019.63
5.4.400.0700.06019.47
5.4.390.0830.06019.19
5.4.380.0530.05719.22
5.4.370.0770.05319.44
5.4.360.0770.05719.51
5.4.350.0800.05319.20
5.4.340.0670.06319.36
5.4.320.0800.07319.54
5.4.310.0870.06719.31
5.4.300.0030.08319.20
5.4.290.0200.06319.50
5.4.280.0830.05719.31
5.4.270.1100.07319.31
5.4.260.1100.05319.38
5.4.250.0870.07319.37
5.4.240.0900.08019.27
5.4.230.0800.06319.28
5.4.220.0930.06019.27
5.4.210.0530.06019.27
5.4.200.1030.06316.96
5.4.190.0700.06019.27
5.4.180.0770.06019.29
5.4.170.0630.06019.25
5.4.160.0770.05719.20
5.4.150.0630.06319.11
5.4.140.0800.05016.77
5.4.130.0730.04716.71
5.4.120.0600.06016.76
5.4.110.0900.04716.79
5.4.100.0700.05016.64
5.4.90.1000.07016.64
5.4.80.1030.05716.68
5.4.70.0730.06016.59
5.4.60.0070.06317.08
5.4.50.0100.05016.90
5.4.40.0030.03716.89
5.4.30.0370.03317.16
5.4.20.0430.06716.93

preferences:
61.34 ms | 401 KiB | 5 Q