3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getCode($account, $domain, $sampleRate) { $result = '<script type="text/javascript">' . PHP_EOL . '(function (i, s, o, g, r, a, m) {' . PHP_EOL . 'i[\'GoogleAnalyticsObject\'] = r;' . PHP_EOL . 'i[r] = i[r] || function () {' . PHP_EOL . '(i[r].q = i[r].q || []).push(arguments)' . PHP_EOL . '}, i[r].l = 1 * new Date();' . PHP_EOL . 'a = s.createElement(o),' . PHP_EOL . 'm = s.getElementsByTagName(o)[0];' . PHP_EOL . 'a.async = 1;' . PHP_EOL . 'a.src = g;' . PHP_EOL . 'm.parentNode.insertBefore(a, m)' . PHP_EOL . '})(window, document, \'script\', \'//www.google-analytics.com/analytics.js\', \'ga\');' . PHP_EOL . 'ga(\'create\', \'' . $this->account . '\',' . PHP_EOL . '{' . PHP_EOL . '\'cookieDomain\': \'' . $this->domain . '\',' . PHP_EOL . '\'siteSpeedSampleRate\': \'' . $this->sampleRate .'\'' . PHP_EOL . '}' . PHP_EOL . ');' . PHP_EOL . 'ga(\'send\', \'pageview\');' . PHP_EOL . '</script>'; return $result; } echo getCode('1', 'livejasmin.com', 100);

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.53
8.3.50.0110.00921.91
8.3.40.0110.00418.79
8.3.30.0070.00718.89
8.3.20.0030.00520.24
8.3.10.0030.00520.57
8.3.00.0080.00021.82
8.2.180.0040.01118.63
8.2.170.0110.00422.96
8.2.160.0110.00322.16
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00020.81
8.2.120.0040.00426.35
8.2.110.0090.00019.19
8.2.100.0080.00418.04
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0030.00717.63
8.2.60.0060.00317.92
8.2.50.0030.00518.09
8.2.40.0000.00820.44
8.2.30.0000.00819.46
8.2.20.0080.00017.71
8.2.10.0040.00418.04
8.2.00.0040.00417.89
8.1.280.0110.00325.92
8.1.270.0120.00822.14
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00321.96
8.1.230.0000.01117.77
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0240.00017.00
8.1.190.0030.00617.11
8.1.180.0080.00018.10
8.1.170.0060.00318.52
8.1.160.0000.00820.61
8.1.150.0000.00718.85
8.1.140.0000.00819.52
8.1.130.0030.00317.59
8.1.120.0000.00717.43
8.1.110.0070.00017.36
8.1.100.0000.00817.34
8.1.90.0060.00317.23
8.1.80.0050.00317.39
8.1.70.0040.00417.43
8.1.60.0000.00817.50
8.1.50.0030.00617.41
8.1.40.0040.00417.47
8.1.30.0000.00817.67
8.1.20.0040.00417.37
8.1.10.0040.00417.55
8.1.00.0040.00417.52
8.0.300.0030.00618.77
8.0.290.0000.00716.75
8.0.280.0000.00818.40
8.0.270.0030.00317.16
8.0.260.0030.00317.13
8.0.250.0030.00316.90
8.0.240.0040.00416.98
8.0.230.0030.00316.97
8.0.220.0070.00016.93
8.0.210.0030.00316.94
8.0.200.0000.00617.02
8.0.190.0040.00416.89
8.0.180.0080.00016.84
8.0.170.0030.00516.82
8.0.160.0030.00516.96
8.0.150.0050.00216.96
8.0.140.0070.00016.86
8.0.130.0000.00513.32
8.0.120.0040.00416.89
8.0.110.0070.00016.82
8.0.100.0040.00416.82
8.0.90.0070.00016.80
8.0.80.0110.00416.80
8.0.70.0050.00316.92
8.0.60.0070.00016.91
8.0.50.0050.00216.93
8.0.30.0090.01017.15
8.0.20.0130.00617.40
8.0.10.0040.00416.76
8.0.00.0100.00716.68
7.4.330.0020.00216.74
7.4.320.0070.00016.40
7.4.300.0030.00316.52
7.4.290.0000.00716.55
7.4.280.0060.00316.45
7.4.270.0070.00016.45
7.4.260.0060.00016.59
7.4.250.0030.00516.33
7.4.240.0070.00016.52
7.4.230.0000.00816.43
7.4.220.0090.00916.52
7.4.210.0090.00516.40
7.4.200.0040.00316.37
7.4.160.0080.00816.54
7.4.150.0100.01317.40
7.4.140.0030.01517.86
7.4.130.0090.01016.70
7.4.120.0080.00816.52
7.4.110.0130.00316.58
7.4.100.0130.01016.29
7.4.90.0090.00916.40
7.4.80.0060.01019.39
7.4.70.0130.00316.43
7.4.60.0070.01516.64
7.4.50.0100.00616.37
7.4.40.0130.00316.34
7.4.30.0160.01016.42
7.4.00.0070.00714.99
7.3.330.0000.00513.40
7.3.320.0030.00313.28
7.3.310.0040.00416.38
7.3.300.0000.00716.35
7.3.290.0000.00716.34
7.3.280.0080.00816.32
7.3.270.0120.00617.40
7.3.260.0070.01416.31
7.3.250.0130.00916.40
7.3.240.0140.00616.46
7.3.230.0070.01016.41
7.3.210.0060.01016.38
7.3.200.0100.00716.54
7.3.190.0120.00616.18
7.3.180.0060.01016.52
7.3.170.0100.01216.50
7.3.160.0040.01216.35
7.3.10.0060.00616.43
7.3.00.0030.00916.73
7.2.330.0140.00816.69
7.2.320.0190.00316.63
7.2.310.0100.00716.41
7.2.300.0110.00716.65
7.2.290.0090.00916.52
7.2.130.0060.00616.66
7.2.120.0040.01416.86
7.2.110.0130.00316.82
7.2.100.0100.00016.57
7.2.90.0060.00916.68
7.2.80.0030.01016.91
7.2.70.0100.00716.61
7.2.60.0070.00716.72
7.2.50.0110.00416.75
7.2.40.0080.00817.04
7.2.30.0070.00717.04
7.2.20.0070.01016.98
7.2.10.0000.01516.89
7.2.00.0190.00717.78
7.1.250.0060.00315.51
7.1.200.0320.00415.33
7.1.100.0040.01117.86
7.1.70.0070.00717.10
7.1.60.0100.01619.40
7.1.50.0060.01316.80
7.1.00.0030.07722.36
7.0.200.0380.00714.84
7.0.60.0330.07021.76
7.0.50.0130.08717.90
7.0.40.0100.08020.41
7.0.30.0300.06720.16
7.0.20.0430.06720.16
7.0.10.0100.05320.19
7.0.00.0070.07720.25
5.6.280.0030.05321.08
5.6.210.0030.08020.50
5.6.200.0070.04018.12
5.6.190.0030.07320.67
5.6.180.0230.03720.33
5.6.170.0330.07720.52
5.6.160.0000.04720.48
5.6.150.0030.08718.19
5.6.140.0030.07318.21
5.6.130.0130.03718.14
5.6.120.0030.08721.12
5.6.110.0130.06321.10
5.6.100.0000.05721.12
5.6.90.0070.06320.95
5.6.80.0100.07020.52
5.5.350.0170.08320.31
5.5.340.0030.04017.96
5.5.330.0070.05020.19
5.5.320.0600.06720.36
5.5.310.0370.05720.37
5.5.300.0070.08017.95
5.5.290.0030.04717.91
5.5.280.0030.06020.89
5.5.270.0100.04320.90
5.5.260.0070.08720.96
5.5.250.0100.04720.59
5.5.240.0270.07020.27

preferences:
59.64 ms | 401 KiB | 5 Q