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, '');

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.0150.00016.50
8.3.50.0070.00716.47
8.3.40.0160.00318.61
8.3.30.0170.00318.83
8.3.20.0040.00420.13
8.3.10.0000.00723.61
8.3.00.0040.00420.95
8.2.180.0150.00318.66
8.2.170.0110.00722.96
8.2.160.0100.01020.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.22
8.2.120.0040.00426.35
8.2.110.0060.00319.32
8.2.100.0110.00017.90
8.2.90.0000.00919.26
8.2.80.0050.00317.97
8.2.70.0050.00517.49
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0060.00322.32
8.2.30.0000.00720.65
8.2.20.0000.00817.68
8.2.10.0040.00418.05
8.2.00.0050.00318.03
8.1.280.0070.00725.92
8.1.270.0000.00820.19
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00621.43
8.1.230.0080.00317.46
8.1.220.0050.00317.80
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0000.00917.23
8.1.180.0070.00018.10
8.1.170.0030.00518.50
8.1.160.0030.00320.76
8.1.150.0000.00818.89
8.1.140.0040.00419.56
8.1.130.0000.00817.64
8.1.120.0000.00717.45
8.1.110.0050.00217.43
8.1.100.0000.00717.48
8.1.90.0040.00417.54
8.1.80.0070.00017.35
8.1.70.0030.00317.45
8.1.60.0030.00617.66
8.1.50.0040.00417.46
8.1.40.0000.00817.50
8.1.30.0040.00417.56
8.1.20.0080.00017.50
8.1.10.0060.00317.53
8.1.00.0080.00017.54
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.46
8.0.270.0040.00417.27
8.0.260.0030.00318.52
8.0.250.0040.00416.93
8.0.240.0030.00316.94
8.0.230.0030.00316.95
8.0.220.0040.00416.90
8.0.210.0000.00816.79
8.0.200.0000.00616.88
8.0.190.0000.00816.93
8.0.180.0040.00416.95
8.0.170.0080.00016.89
8.0.160.0030.00316.89
8.0.150.0070.00016.85
8.0.140.0050.00316.87
8.0.130.0000.00513.30
8.0.120.0030.00516.77
8.0.110.0040.00416.92
8.0.100.0040.00416.93
8.0.90.0000.00816.70
8.0.80.0090.00616.89
8.0.70.0040.00416.80
8.0.60.0040.00416.90
8.0.50.0040.00416.92
8.0.30.0070.01017.23
8.0.20.0110.01017.40
8.0.10.0040.00416.89
8.0.00.0110.01016.78
7.4.330.0020.00316.68
7.4.320.0030.00316.52
7.4.300.0030.00316.60
7.4.290.0090.00016.54
7.4.280.0070.00016.65
7.4.270.0070.00016.43
7.4.260.0040.00316.50
7.4.250.0040.00416.47
7.4.240.0020.00516.58
7.4.230.0030.00316.62
7.4.220.0090.01616.64
7.4.210.0110.00316.46
7.4.200.0000.00716.64
7.4.160.0060.00916.60
7.4.150.0030.01417.40
7.4.140.0100.00717.86
7.4.130.0080.00916.43
7.4.120.0130.00716.50
7.4.110.0060.01516.44
7.4.100.0090.00916.36
7.4.90.0110.00716.66
7.4.80.0070.01119.39
7.4.70.0130.00616.55
7.4.60.0150.00016.37
7.4.50.0080.00816.22
7.4.40.0130.00316.61
7.4.30.0100.00716.50
7.4.00.0030.01314.82
7.3.330.0050.00013.35
7.3.320.0000.00713.19
7.3.310.0070.00016.19
7.3.300.0030.00316.24
7.3.290.0050.01116.33
7.3.280.0080.00616.34
7.3.270.0130.00717.40
7.3.260.0060.01016.45
7.3.250.0100.00916.54
7.3.240.0060.01016.51
7.3.230.0090.00916.59
7.3.210.0140.00716.60
7.3.200.0070.01016.34
7.3.190.0140.00516.46
7.3.180.0160.00616.56
7.3.170.0070.01016.64
7.3.160.0120.00316.62
7.3.10.0050.00916.79
7.3.00.0040.00716.56
7.2.330.0100.01416.35
7.2.320.0030.01616.77
7.2.310.0060.01016.70
7.2.300.0040.01416.64
7.2.290.0080.00816.54
7.2.130.0040.00716.82
7.2.120.0080.00517.01
7.2.110.0080.00816.78
7.2.100.0030.01216.85
7.2.90.0060.00817.04
7.2.80.0050.00916.78
7.2.70.0050.01116.76
7.2.60.0050.00716.77
7.2.50.0040.00516.94
7.2.40.0040.01116.77
7.2.30.0070.00816.84
7.2.20.0020.01116.80
7.2.10.0090.00516.87
7.2.00.0020.00917.73
7.1.250.0060.00415.88
7.1.240.0130.00315.57
7.1.230.0100.00315.81
7.1.220.0060.00315.71
7.1.210.0080.00815.81
7.1.200.0050.00715.67
7.1.190.0000.00915.74
7.1.180.0110.00715.63
7.1.170.0070.00715.72
7.1.160.0030.01315.89
7.1.150.0080.00415.70
7.1.140.0030.01015.48
7.1.130.0060.00315.65
7.1.120.0070.00715.89
7.1.110.0110.00015.98
7.1.100.0050.00816.94
7.1.90.0000.01015.72
7.1.80.0070.00415.90
7.1.70.0040.00716.58
7.1.60.0040.00817.67
7.1.50.0100.01016.48
7.1.40.0140.00315.78
7.1.30.0110.00315.84
7.1.20.0030.01315.57
7.1.10.0000.01215.82
7.1.00.0030.04219.10
7.0.330.0040.01215.15
7.0.320.0030.00915.59
7.0.310.0060.01015.13
7.0.300.0000.00815.41
7.0.290.0030.00615.34
7.0.280.0060.00615.35
7.0.270.0070.01115.32
7.0.260.0100.00715.41
7.0.250.0080.00715.41
7.0.240.0030.01415.45
7.0.230.0100.00615.38
7.0.220.0130.00015.12
7.0.210.0090.00615.43
7.0.200.0000.01016.21
7.0.190.0100.00315.51
7.0.180.0090.00615.26
7.0.170.0050.00415.47
7.0.160.0030.01015.42
7.0.150.0030.00615.37
7.0.140.0040.01115.45
7.0.130.0030.01015.44
7.0.120.0100.00315.46
7.0.110.0000.01215.23
7.0.100.0030.01015.13
7.0.90.0000.01415.27
7.0.80.0030.01215.23
7.0.70.0040.01115.20
7.0.60.0080.04217.72
7.0.50.0090.03916.70
7.0.40.0080.02816.89
7.0.30.0260.03716.70
7.0.20.0150.04216.68
7.0.10.0120.03816.66
7.0.00.0030.02616.72
5.6.380.0100.00014.43
5.6.370.0030.01314.57
5.6.360.0000.00814.54
5.6.350.0090.00914.37
5.6.340.0060.00614.45
5.6.330.0100.00314.24
5.6.320.0070.01114.56
5.6.310.0160.00014.27
5.6.300.0120.00314.63
5.6.290.0060.00914.45
5.6.280.0090.03017.59
5.6.270.0040.01514.65
5.6.260.0000.01414.73
5.6.250.0030.00614.33
5.6.240.0080.00414.37
5.6.230.0030.00914.26
5.6.220.0060.00314.41
5.6.210.0100.04417.50
5.6.200.0030.03516.30
5.6.190.0020.05317.56
5.6.180.0200.03617.43
5.6.170.0100.03717.28
5.6.160.0070.03817.32
5.6.150.0030.02716.18
5.6.140.0050.02416.35
5.6.130.0030.03916.31
5.6.120.0040.02417.58
5.6.110.0100.03817.56
5.6.100.0070.03017.53
5.6.90.0050.02517.79
5.6.80.0080.04117.28
5.6.70.0040.00714.26
5.6.60.0040.00814.15
5.6.50.0090.00314.30
5.6.40.0080.00314.24
5.6.30.0030.01414.22
5.6.20.0120.00014.59
5.6.10.0030.01214.02
5.6.00.0070.01013.90
5.5.380.0030.00611.16
5.5.370.0090.00510.86
5.5.360.0060.00311.16
5.5.350.2050.02415.68
5.5.340.0050.04014.61
5.5.330.0050.03315.68
5.5.320.0090.02815.70
5.5.310.0110.03215.90
5.5.300.0090.03814.57
5.5.290.0080.02214.51
5.5.280.0090.03915.86
5.5.270.0070.04315.86
5.5.260.0100.03916.05
5.5.250.0090.04115.85
5.5.240.2180.02015.64
5.5.230.0030.00611.18
5.5.220.0060.00611.22
5.5.210.0000.01110.97
5.5.200.0000.01211.00
5.5.190.0000.01011.03
5.5.180.0090.00311.29
5.5.170.0000.01011.25
5.5.160.0070.00310.95
5.5.150.0030.01011.03
5.5.140.0090.00311.34
5.5.130.0000.00811.36
5.5.120.0000.00911.43
5.5.110.0000.01210.93
5.5.100.0000.00810.99
5.5.90.0030.00311.36
5.5.80.0000.01011.04
5.5.70.0060.00010.79
5.5.60.0080.00011.27
5.5.50.0060.00310.62
5.5.40.0030.00311.34
5.5.30.0000.00611.42
5.5.20.0030.00911.11
5.5.10.0030.00711.01
5.5.00.0000.01011.03

preferences:
58.22 ms | 400 KiB | 5 Q