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.0040.01116.63
8.3.50.0130.00521.11
8.3.40.0070.01318.68
8.3.30.0080.00818.87
8.3.20.0040.00420.39
8.3.10.0040.00423.65
8.3.00.0030.00520.84
8.2.180.0070.01418.29
8.2.170.0070.00722.96
8.2.160.0040.01122.04
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0060.00319.83
8.2.110.0090.00022.24
8.2.100.0060.00617.91
8.2.90.0030.00619.26
8.2.80.0030.00518.16
8.2.70.0030.00917.63
8.2.60.0040.00418.04
8.2.50.0060.00319.35
8.2.40.0040.00422.24
8.2.30.0070.00020.66
8.2.20.0000.00717.75
8.2.10.0000.00818.08
8.2.00.0070.00018.01
8.1.280.0150.00025.92
8.1.270.0140.00320.28
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0080.00022.55
8.1.230.0080.00319.07
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0100.00017.36
8.1.190.0050.00317.25
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0040.00420.78
8.1.150.0030.00518.92
8.1.140.0060.00319.47
8.1.130.0040.00417.69
8.1.120.0040.00417.51
8.1.110.0000.00817.49
8.1.100.0080.00017.43
8.1.90.0030.00517.35
8.1.80.0040.00417.44
8.1.70.0000.00817.41
8.1.60.0040.00417.65
8.1.50.0030.00617.55
8.1.40.0000.00717.59
8.1.30.0090.00017.67
8.1.20.0000.00817.52
8.1.10.0030.00517.50
8.1.00.0040.00417.51
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0040.00417.22
8.0.260.0000.00617.25
8.0.250.0000.00716.96
8.0.240.0030.00316.84
8.0.230.0030.00516.93
8.0.220.0040.00416.82
8.0.210.0000.00816.95
8.0.200.0030.00316.83
8.0.190.0000.00716.96
8.0.180.0040.00416.95
8.0.170.0000.00716.86
8.0.160.0030.00516.85
8.0.150.0000.00716.74
8.0.140.0000.00816.85
8.0.130.0000.00513.36
8.0.120.0000.00816.84
8.0.110.0040.00416.82
8.0.100.0040.00416.89
8.0.90.0040.00416.90
8.0.80.0070.00716.86
8.0.70.0050.00216.76
8.0.60.0050.00516.74
8.0.50.0030.00516.71
8.0.30.0120.00816.99
8.0.20.0110.01017.40
8.0.10.0000.00816.83
8.0.00.0080.01416.79
7.4.330.0060.00016.83
7.4.320.0000.00616.54
7.4.300.0000.00616.61
7.4.290.0040.00416.61
7.4.280.0000.00716.65
7.4.270.0070.00016.63
7.4.260.0070.00016.60
7.4.250.0070.00016.53
7.4.240.0060.00116.57
7.4.230.0020.00516.50
7.4.220.0110.00616.64
7.4.210.0060.00916.54
7.4.200.0040.00416.62
7.4.160.0060.01216.44
7.4.150.0030.01417.40
7.4.140.0060.01217.86
7.4.130.0100.00816.58
7.4.120.0090.00816.57
7.4.110.0150.00716.48
7.4.100.0090.00916.58
7.4.90.0070.01016.47
7.4.80.0090.00919.39
7.4.70.0150.00616.66
7.4.60.0170.00316.72
7.4.50.0090.00616.49
7.4.40.0060.01016.20
7.4.30.0150.00916.61
7.4.00.0070.00715.10
7.3.330.0030.00313.30
7.3.320.0030.00313.24
7.3.310.0000.00716.27
7.3.300.0000.00716.33
7.3.290.0070.00816.31
7.3.280.0100.00916.39
7.3.270.0150.00917.40
7.3.260.0100.00616.41
7.3.250.0100.00816.43
7.3.240.0100.00716.62
7.3.230.0040.01416.61
7.3.210.0130.01016.38
7.3.200.0120.00416.30
7.3.190.0060.01016.32
7.3.180.0180.00316.47
7.3.170.0080.01116.54
7.3.160.0150.00616.59
7.2.330.0160.00316.75
7.2.320.0090.00916.67
7.2.310.0050.01016.42
7.2.300.0070.01416.68
7.2.290.0100.00716.78
7.2.60.0060.00916.90
7.1.200.0000.01315.73
7.1.70.0040.00417.09
7.1.60.0100.01019.52
7.1.50.0100.01017.05
7.1.00.0000.07722.45
7.0.200.0000.00716.86
7.0.100.0170.05720.18
7.0.90.0270.04320.15
7.0.80.0100.08019.98
7.0.70.0130.07020.04
7.0.60.0230.04719.97
7.0.50.0330.07320.32
7.0.40.0100.08720.12
7.0.30.0100.04720.17
7.0.20.0100.08320.13
7.0.10.0000.04320.04
7.0.00.0070.08319.95
5.6.250.0030.05320.73
5.6.240.0030.05320.65
5.6.230.0070.09020.53
5.6.220.0070.05320.63
5.6.210.0030.04720.66
5.6.200.0100.04721.18
5.6.190.0000.08321.04
5.6.180.0070.08321.12
5.6.170.0100.03721.03
5.6.160.0100.08020.97
5.6.150.0000.04321.07
5.6.140.0030.07021.06
5.6.130.0070.04021.04
5.6.120.0070.08020.98
5.6.110.0070.04721.17
5.6.100.0030.07021.01
5.6.90.0030.05320.95
5.6.80.0030.07020.38
5.6.70.0070.05720.49
5.6.60.0100.07020.46
5.6.50.0070.04720.57
5.6.40.0070.08020.42
5.6.30.0170.06720.39
5.6.20.0070.05020.39
5.6.10.0030.05720.40
5.6.00.0100.04020.52
5.5.380.0000.06320.34
5.5.370.0000.08020.43
5.5.360.0130.07020.36
5.5.350.0000.06720.34
5.5.340.0030.09320.81
5.5.330.0070.08720.89
5.5.320.0100.08020.86
5.5.310.0070.08720.92
5.5.300.0030.06320.87
5.5.290.0030.04020.74
5.5.280.0100.06320.74
5.5.270.0070.07020.86
5.5.260.0030.04320.64
5.5.250.0070.05720.71
5.5.240.0030.08320.24
5.5.230.0130.03020.31
5.5.220.0070.06020.18
5.5.210.0030.06720.22
5.5.200.0000.08020.28
5.5.190.0100.07720.28
5.5.180.0100.03720.23
5.5.160.0070.03720.13
5.5.150.0030.06320.19
5.5.140.0030.07020.27
5.5.130.0130.07720.27
5.5.120.0070.08020.22
5.5.110.0100.06720.21
5.5.100.0130.03320.08
5.5.90.0100.07320.01
5.5.80.0000.05720.08
5.5.70.0030.06020.07
5.5.60.0070.07320.10
5.5.50.0030.06020.12
5.5.40.0100.05320.11
5.5.30.0070.03320.06
5.5.20.0070.08020.06
5.5.10.0100.05320.11
5.5.00.0030.04020.07

preferences:
72.84 ms | 401 KiB | 5 Q