3v4l.org

run code in 300+ PHP versions simultaneously
<?php class _DEV { private static $_className = ''; private static $_runList = array(); public function __construct() { self::$_className = get_class($this); } public function run($_what, $_code, $_params) { $_errHead = self::$_className." -> ".__FUNCTION__; $_out = array(); (self::$_runList)[$_what] = $_code; $_out = (self::$_runList)[$_what]($_params); // >>> line # 27 referred to in error message return $_out; } } $_trial = new _DEV(); $_test = function() { $_out = array(); $_out['passed'] = "Appears to be working"; return $_out; }; $_result = $_trial->run('test', $_test, ''); var_dump($_result);

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.00716.59
8.3.50.0170.01521.07
8.3.40.0150.00618.79
8.3.30.0090.00618.85
8.3.20.0000.00820.38
8.3.10.0030.00523.51
8.3.00.0080.00020.59
8.2.180.0110.00418.41
8.2.170.0110.00422.96
8.2.160.0060.00820.37
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0050.00319.30
8.2.120.0080.00026.35
8.2.110.0030.00622.09
8.2.100.0040.00817.93
8.2.90.0050.00319.35
8.2.80.0040.00417.97
8.2.70.0070.00317.50
8.2.60.0000.00818.16
8.2.50.0000.00918.07
8.2.40.0000.00822.15
8.2.30.0070.00020.52
8.2.20.0000.00717.77
8.2.10.0040.00418.01
8.2.00.0050.00318.07
8.1.280.0090.00625.92
8.1.270.0080.00020.28
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.42
8.1.230.0040.00819.09
8.1.220.0040.00417.78
8.1.210.0030.00518.77
8.1.200.0000.00917.47
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0070.00318.63
8.1.160.0000.00720.70
8.1.150.0040.00418.95
8.1.140.0030.00519.54
8.1.130.0030.00317.67
8.1.120.0000.00717.55
8.1.110.0070.00017.48
8.1.100.0000.00817.49
8.1.90.0040.00417.51
8.1.80.0040.00417.47
8.1.70.0000.00817.43
8.1.60.0000.00817.60
8.1.50.0030.00617.54
8.1.40.0040.00417.55
8.1.30.0000.00817.61
8.1.20.0050.00217.56
8.1.10.0030.00517.47
8.1.00.0060.00317.54
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.54
8.0.270.0030.00517.27
8.0.260.0030.00317.28
8.0.250.0030.00516.91
8.0.240.0000.00716.95
8.0.230.0000.00717.01
8.0.220.0000.00816.94
8.0.210.0040.00416.93
8.0.200.0050.00316.84
8.0.190.0000.00716.97
8.0.180.0040.00416.98
8.0.170.0040.00416.83
8.0.160.0070.00016.84
8.0.150.0030.00316.91
8.0.140.0070.00016.83
8.0.130.0000.00513.30
8.0.120.0000.00816.77
8.0.110.0040.00416.86
8.0.100.0040.00416.95
8.0.90.0080.00016.97
8.0.80.0090.00616.86
8.0.70.0040.00416.95
8.0.60.0090.00016.96
8.0.50.0000.00716.76
8.0.30.0070.01217.10
8.0.20.0150.00417.40
8.0.10.0030.00517.05
8.0.00.0120.00816.86
7.4.330.0000.00516.77
7.4.320.0060.00016.59
7.4.300.0000.00616.44
7.4.290.0030.00716.44
7.4.280.0050.00216.62
7.4.270.0030.00316.63
7.4.260.0080.00016.59
7.4.250.0040.00416.63
7.4.240.0000.00816.49
7.4.230.0000.00716.51
7.4.220.0120.00916.55
7.4.210.0110.00416.68
7.4.200.0030.00316.71
7.4.160.0070.01016.43
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0040.01316.54
7.4.120.0100.00716.54
7.4.110.0030.01516.42
7.4.100.0090.00916.35
7.4.90.0080.01116.62
7.4.80.0170.00519.39
7.4.70.0060.01216.31
7.4.60.0030.01216.35
7.4.50.0030.01016.42
7.4.40.0140.00916.54
7.4.30.0090.01516.47
7.4.00.0110.00614.80
7.3.330.0060.00013.24
7.3.320.0000.00813.19
7.3.310.0000.00716.47
7.3.300.0000.00716.26
7.3.290.0140.00316.34
7.3.280.0070.00916.41
7.3.270.0110.00517.40
7.3.260.0160.00016.33
7.3.250.0070.01016.33
7.3.240.0120.00516.47
7.3.230.0070.01016.39
7.3.210.0080.01516.62
7.3.200.0100.00616.50
7.3.190.0090.00616.51
7.3.180.0060.01016.65
7.3.170.0130.01016.38
7.3.160.0160.00016.35
7.3.120.0100.00714.93
7.3.110.0050.01014.69
7.3.100.0080.01115.01
7.3.90.0040.01414.80
7.3.80.0060.00614.96
7.3.70.0080.00514.89
7.3.60.0040.01114.83
7.3.50.0000.01114.79
7.3.40.0080.00814.93
7.3.30.0070.00914.70
7.3.20.0100.00516.45
7.3.10.0090.00616.70
7.3.00.0050.01016.71
7.2.330.0060.01416.75
7.2.320.0190.00016.70
7.2.310.0030.01316.45
7.2.300.0080.00816.34
7.2.290.0090.00616.70
7.2.250.0090.00915.13
7.2.240.0080.00914.96
7.2.230.0020.01315.12
7.2.220.0000.01714.84
7.2.210.0020.00914.69
7.2.200.0080.00514.81
7.2.190.0040.00915.01
7.2.180.0060.00915.17
7.2.170.0060.00815.03
7.2.60.0030.01016.89
7.2.00.0060.00619.15
7.1.330.0080.00615.81
7.1.320.0060.01015.70
7.1.310.0030.00815.77
7.1.300.0060.00515.77
7.1.290.0100.00415.78
7.1.280.0010.01015.85
7.1.270.0060.01015.86
7.1.260.0060.00415.63
7.1.200.0030.00915.77
7.1.100.0030.01218.13
7.1.70.0040.00417.29
7.1.60.0030.01519.52
7.1.50.0100.01017.12
7.1.00.0030.07722.45
7.0.200.0060.00316.82
7.0.60.0000.06019.93
7.0.50.0100.04717.96
7.0.40.0070.08320.26
7.0.30.0330.04720.23
7.0.20.0300.07320.19
7.0.10.0130.05720.30
7.0.00.0000.06020.20
5.6.280.0000.06720.93
5.6.210.0130.07020.75
5.6.200.0070.04318.16
5.6.190.0000.04720.34
5.6.180.0270.07720.58
5.6.170.0230.07720.48
5.6.160.0070.08320.47
5.6.150.0030.03718.15
5.6.140.0030.08718.21
5.6.130.0000.08018.28
5.6.120.0170.07021.00
5.6.110.0070.04021.01
5.6.100.0200.06721.11
5.6.90.0030.08020.88
5.6.80.0100.08320.26
5.5.350.4370.03320.39
5.5.340.0070.05017.98
5.5.330.0070.09020.27
5.5.320.0270.03320.27
5.5.310.0370.04720.29
5.5.300.0100.07718.10
5.5.290.0100.05717.95
5.5.280.0070.08320.91
5.5.270.0030.05720.89
5.5.260.0100.08020.80
5.5.250.0130.08020.80
5.5.240.4100.05020.18

preferences:
54.41 ms | 401 KiB | 5 Q