3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET = [ "city" => "South Boston", "title" => "The good stuff", "price" => "$15" ]; $_SERVER["REQUEST_URI"] = "/I/dont/know?" . http_build_query($_GET); $dir_auth1 = "aidan"; $xml = simplexml_load_string('<root/>'); $entry = $xml->addChild('link'); $entry->addChild('title')->value = chop($_GET['city'] .' - '. $_GET['title']) .' for '. $_GET['price'] .' from @'. $dir_auth1; $entry->addChild('url')->value = 'http://boston.lit.life' . $_SERVER['REQUEST_URI']; echo $xml->asXML(); ?>

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.5.10.0070.01217.10
8.5.00.0160.00620.30
8.4.160.0130.00924.07
8.4.150.0010.00114.05
8.4.140.0100.01117.92
8.4.130.0040.00517.78
8.4.120.0110.00822.32
8.4.110.0110.00619.22
8.4.100.0140.00717.79
8.4.90.0130.00720.72
8.4.80.0080.00919.29
8.4.70.0140.00720.73
8.4.60.0160.00419.25
8.4.50.0140.00719.71
8.4.40.0030.01619.51
8.4.30.0090.00619.62
8.4.20.0030.00618.05
8.4.10.0030.01319.67
8.3.280.0150.00618.63
8.3.270.0110.00916.74
8.3.260.0120.00516.89
8.3.250.0080.01019.01
8.3.240.0140.00616.83
8.3.230.0130.00616.87
8.3.220.0100.00919.46
8.3.210.0090.00817.14
8.3.200.0110.01016.95
8.3.190.0090.01016.75
8.3.180.0020.00616.87
8.3.170.0040.00417.35
8.3.160.0090.00918.66
8.3.150.0060.01220.95
8.3.140.0110.00016.78
8.3.130.0090.00617.05
8.3.120.0040.00421.00
8.3.110.0090.00017.04
8.3.100.0070.00316.74
8.3.90.0100.01026.77
8.3.80.0030.00617.00
8.3.70.0090.00618.56
8.3.60.0070.00716.75
8.3.50.0150.00517.79
8.3.40.0100.00718.96
8.3.30.0140.00019.14
8.3.20.0070.00020.46
8.3.10.0040.00422.29
8.3.00.0080.00023.65
8.2.290.0130.00616.90
8.2.280.0050.00318.45
8.2.270.0090.00917.56
8.2.260.0090.00918.38
8.2.250.0030.01317.22
8.2.240.0100.00016.89
8.2.230.0040.00420.94
8.2.220.0040.00424.06
8.2.210.0180.00026.77
8.2.200.0060.00317.00
8.2.190.0150.00317.00
8.2.180.0040.01116.63
8.2.170.0090.00922.96
8.2.160.0130.00020.64
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00019.52
8.2.120.0040.00426.35
8.2.110.0030.00719.46
8.2.100.0120.00017.88
8.2.90.0040.00422.45
8.2.80.0040.00418.29
8.2.70.0030.00518.30
8.2.60.0000.00818.05
8.2.50.0040.00418.47
8.2.40.0000.00820.84
8.2.30.0050.00219.47
8.2.20.0040.00418.29
8.2.10.0050.00318.48
8.2.00.0000.00718.35
8.1.330.0140.00416.45
8.1.320.0120.00816.57
8.1.310.0090.00616.70
8.1.300.0150.00018.36
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0040.00422.34
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00622.52
8.1.230.0040.00821.17
8.1.220.0060.00318.03
8.1.210.0040.00419.16
8.1.200.0030.00517.73
8.1.190.0090.00017.36
8.1.180.0000.00718.10
8.1.170.0000.00718.84
8.1.160.0020.00519.20
8.1.150.0000.00720.39
8.1.140.0000.00719.83
8.1.130.0000.00720.86
8.1.120.0000.00817.59
8.1.110.0080.00017.69
8.1.100.0030.00517.59
8.1.90.0040.00417.72
8.1.80.0040.00417.78
8.1.70.0070.00017.71
8.1.60.0000.00817.84
8.1.50.0000.00817.74
8.1.40.0090.00017.78
8.1.30.0060.00317.88
8.1.20.0040.00417.75
8.1.10.0000.00817.86
8.1.00.0040.00417.78
8.0.300.0000.00720.34
8.0.290.0030.00617.00
8.0.280.0040.00418.72
8.0.270.0000.00717.07
8.0.260.0060.00320.48
8.0.250.0070.00017.17
8.0.240.0000.00717.08
8.0.230.0040.00417.14
8.0.220.0050.00317.04
8.0.210.0030.00317.13
8.0.200.0030.00317.25
8.0.190.0070.00017.18
8.0.180.0040.00417.12
8.0.170.0040.00417.07
8.0.160.0030.00317.09
8.0.150.0000.00717.02
8.0.140.0040.00417.11
8.0.130.0000.00713.52
8.0.120.0000.00816.94
8.0.110.0050.00317.02
8.0.100.0040.00416.99
8.0.90.0080.00017.04
8.0.80.0080.00817.17
8.0.70.0000.00716.88
8.0.60.0000.00817.19
8.0.50.0030.00617.17
8.0.30.0090.01017.14
8.0.20.0110.00817.51
8.0.10.0040.00417.25
8.0.00.0070.01116.97
7.4.330.0030.00315.55
7.4.320.0000.00716.79
7.4.300.0060.00016.72
7.4.290.0070.00016.75
7.4.280.0070.00016.70
7.4.270.0000.01016.70
7.4.260.0040.00416.82
7.4.250.0040.00416.84
7.4.240.0030.00316.91
7.4.230.0000.00716.92
7.4.220.0060.01616.60
7.4.210.0100.00816.78
7.4.200.0040.00416.79
7.4.160.0110.00816.78
7.4.150.0100.00717.40
7.4.140.0110.00717.86
7.4.130.0110.00716.87
7.4.120.0080.01016.70
7.4.110.0080.00916.68
7.4.100.0070.01416.82
7.4.90.0130.00416.81
7.4.80.0130.00719.39
7.4.70.0080.00816.86
7.4.60.0060.01016.79
7.4.50.0060.01216.85
7.4.40.0030.01216.76
7.4.30.0030.01516.55
7.4.00.0050.01215.11
7.3.330.0000.00513.31
7.3.320.0030.00313.48
7.3.310.0000.00716.62
7.3.300.0000.00716.52
7.3.290.0070.00016.42
7.3.280.0090.01016.59
7.3.270.0070.01117.40
7.3.260.0140.00616.50
7.3.250.0100.00716.58
7.3.240.0100.00916.75
7.3.230.0060.01216.78
7.3.210.0140.00416.80
7.3.200.0060.01216.89
7.3.190.0120.00316.81
7.3.180.0060.01216.52
7.3.170.0150.00016.89
7.3.160.0110.00616.72
7.3.120.0060.01214.80
7.3.110.0030.01014.98
7.3.100.0030.00714.96
7.3.90.0000.00914.88
7.3.80.0060.00615.00
7.3.70.0030.01015.10
7.3.60.0090.00614.98
7.3.50.0030.01414.87
7.3.40.0040.00814.82
7.3.30.0030.01014.88
7.3.20.0070.01016.90
7.3.10.0080.00716.73
7.3.00.0060.00616.73
7.2.330.0060.01117.04
7.2.320.0040.01417.10
7.2.310.0100.00717.08
7.2.300.0160.00616.77
7.2.290.0040.01216.70
7.2.250.0000.01515.18
7.2.240.0070.01015.31
7.2.230.0090.00614.90
7.2.220.0090.00615.41
7.2.210.0080.00414.92
7.2.200.0050.00515.20
7.2.190.0000.01615.29
7.2.180.0100.00715.25
7.2.170.0030.01015.28
7.2.130.0060.00916.80
7.2.120.0070.01016.84
7.2.110.0070.01017.21
7.2.100.0070.00716.98
7.2.90.0080.00817.05
7.2.80.0000.01117.23
7.2.70.0060.00917.02
7.2.60.0080.00617.09
7.2.50.0000.01417.31
7.2.40.0000.01316.91
7.2.30.0090.00617.23
7.2.20.0000.01217.20
7.2.10.0090.00616.85
7.2.00.0070.01017.04
7.1.330.0100.00616.05
7.1.320.0080.00315.81
7.1.310.0000.01215.99
7.1.300.0040.01115.79
7.1.290.0080.00415.77
7.1.280.0000.01015.71
7.1.270.0060.00615.99
7.1.260.0080.00515.67
7.1.250.0030.01015.74
7.1.200.0060.00615.93
7.1.90.0030.00918.38
7.1.80.0000.01218.34
7.1.70.0000.01217.15
7.1.60.0130.01335.36
7.1.50.0180.00735.10
7.1.40.0190.00634.58
7.1.30.0190.00634.70
7.1.20.0150.01134.68
7.1.10.0000.01316.81
7.1.00.0030.01016.92
7.0.230.0080.00417.72
7.0.220.0090.00617.95
7.0.210.0040.00716.77
7.0.200.0060.00616.77
7.0.190.0040.00816.72
7.0.180.0060.00916.42
7.0.170.0060.00616.32
7.0.160.0030.01016.52
7.0.150.0060.00616.41
7.0.140.0030.00916.60
7.0.130.0120.00016.76
7.0.120.0120.00016.61
7.0.110.0060.00616.68
7.0.100.0100.00316.53
7.0.90.0060.00616.48
7.0.80.0030.01216.64
7.0.70.0060.00616.59
7.0.60.0000.01216.11
7.0.50.0070.00716.54
7.0.40.0060.00716.49
7.0.30.0030.00916.54
7.0.20.0050.00916.65
7.0.10.0090.00616.54
7.0.00.0090.00916.51

preferences:
37.97 ms | 403 KiB | 5 Q