3v4l.org

run code in 300+ PHP versions simultaneously
<?hh $classes = get_declared_classes(); foreach($classes as $class) { $methods = get_class_methods($class); foreach($methods as $method) { if (in_array($method, array('__construct', '__destruct', '__call', '__callStatic', '__get', '__set', '__isset', '__unset', '__sleep', '__wakeup', '__toString', '__invoke', '__set_state', '__clone'))) { printf("%s::%s\n", $class, $method); } $functions = get_defined_functions(); $functions_list = array(); foreach($functions['user'] as $func) { $f = new ReflectionFunction($func); $args = array(); foreach($f->getParameters() as $param) { $tmparg = ''; if ($param->isPassedByReference()) $tmparg = '&'; if ($param->isOptional()) { $tmparg = '[' . $tmparg . '$' . $param->getName() . ' = ' . $param->getDefaultValue() . ']'; } else { $tmparg.= '&' . $param->getName(); } $args[] = $tmparg; unset($tmparg); } printf("function %s ( %s ){[###]...[###]}\n", $func, implode(', ', $args)); } } }

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.0100.01018.43
8.3.50.0100.01021.02
8.3.40.0180.00318.67
8.3.30.0130.00320.08
8.3.20.0040.00420.45
8.3.10.0000.00820.95
8.3.00.0070.01122.32
8.2.180.0070.01416.50
8.2.170.0120.00322.96
8.2.160.0100.00320.57
8.2.150.0050.00324.18
8.2.140.0050.00524.66
8.2.130.0000.00826.16
8.2.120.0080.00621.19
8.2.110.0090.00019.32
8.2.100.0110.00017.72
8.2.90.0040.00419.17
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0050.00317.80
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00719.40
8.2.20.0050.00317.44
8.2.10.0000.00717.48
8.2.00.0070.00017.41
8.1.280.0040.01125.92
8.1.270.0080.00023.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00324.00
8.1.230.0060.00620.99
8.1.220.0040.00418.77
8.1.210.0000.00819.02
8.1.200.0000.01017.10
8.1.190.0000.00717.41
8.1.180.0000.00718.10
8.1.170.0050.00318.57
8.1.160.0020.00518.74
8.1.150.0050.00318.50
8.1.140.0070.00017.18
8.1.130.0040.00418.77
8.1.120.0070.00017.31
8.1.110.0000.00717.31
8.1.100.0030.00317.23
8.1.90.0070.00017.37
8.1.80.0040.00417.34
8.1.70.0000.00717.33
8.1.60.0030.00617.46
8.1.50.0070.00017.32
8.1.40.0070.00017.27
8.1.30.0070.00017.37
8.1.20.0060.00317.46
8.1.10.0050.00217.45
8.1.00.0000.00817.34
8.0.300.0070.00019.90
8.0.290.0040.00416.89
8.0.280.0030.00318.23
8.0.270.0030.00317.09
8.0.260.0060.00018.28
8.0.250.0060.00016.80
8.0.240.0000.00716.70
8.0.230.0050.00316.76
8.0.220.0020.00516.73
8.0.210.0000.00716.68
8.0.200.0000.00716.64
8.0.190.0030.00516.81
8.0.180.0000.00716.82
8.0.170.0000.00816.70
8.0.160.0030.00416.80
8.0.150.0000.00716.69
8.0.140.0070.00016.67
8.0.130.0000.00613.46
8.0.120.0000.00816.68
8.0.110.0040.00416.60
8.0.100.0040.00416.77
8.0.90.0050.00316.64
8.0.80.0030.01316.77
8.0.70.0030.00516.71
8.0.60.0040.00416.74
8.0.50.0040.00416.81
8.0.30.0090.00916.93
8.0.20.0150.01017.40
8.0.10.0070.00016.93
8.0.00.0100.01116.55
7.4.330.0000.00516.76
7.4.320.0040.00416.46
7.4.300.0060.00016.43
7.4.290.0030.00316.44
7.4.280.0030.00316.45
7.4.270.0070.00016.33
7.4.260.0000.00513.14
7.4.250.0000.00716.33
7.4.240.0050.00216.39
7.4.230.0030.00316.36
7.4.220.0040.02116.56
7.4.210.0060.00916.40
7.4.200.0000.00716.29
7.4.190.0030.00316.62
7.4.160.0100.00616.47
7.4.150.0060.01217.40
7.4.140.0080.00917.86
7.4.130.0140.00516.32
7.4.120.0130.00616.32
7.4.110.0060.01216.39
7.4.100.0070.01116.28
7.4.90.0150.00816.33
7.4.80.0120.00619.39
7.4.70.0030.01416.46
7.4.60.0100.01016.36
7.4.50.0030.00516.36
7.4.40.0120.00422.77
7.4.30.0170.00416.53
7.3.330.0000.00513.23
7.3.320.0030.00313.19
7.3.310.0070.00016.08
7.3.300.0000.00716.14
7.3.290.0090.00616.18
7.3.280.0080.00916.16
7.3.270.0060.00917.40
7.3.260.0120.00718.24
7.3.250.0100.00816.22
7.3.240.0030.01416.22
7.3.230.0110.00516.42
7.3.210.0030.01316.35
7.3.200.0170.00019.39
7.3.190.0140.00316.19
7.3.180.0040.01116.11
7.3.170.0090.00616.27
7.3.160.0140.00616.20
7.2.330.0060.01916.45
7.2.320.0180.00316.47
7.2.310.0120.00616.38
7.2.300.0090.00916.31
7.2.290.0090.00616.50
5.4.320.0070.04112.45
5.4.310.0060.03912.45
5.4.300.0090.04812.45
5.4.290.0120.04512.45
5.4.280.0120.06812.33
5.4.270.0100.04312.33
5.4.260.0130.06312.33
5.4.250.0090.05012.33
5.4.240.0090.04212.33
5.4.230.0100.04012.32
5.4.220.0070.05312.33
5.4.210.0090.04212.32
5.4.200.0100.05012.32
5.4.190.0110.05612.32
5.4.180.0090.04912.32
5.4.170.0080.04612.33
5.4.160.0080.04112.33
5.4.150.0110.04312.33
5.4.140.0150.06712.01
5.4.130.0150.06612.00
5.4.120.0190.05611.95
5.4.110.0180.07011.95
5.4.100.0110.04911.95
5.4.90.0070.05711.95
5.4.80.0110.06511.95
5.4.70.0090.04711.95
5.4.60.0090.04511.95
5.4.50.0100.05111.95
5.4.40.0090.05011.94
5.4.30.0090.05211.93
5.4.20.0090.04411.93
5.4.10.0160.05811.93
5.4.00.0120.06111.42
5.3.290.0080.04112.80
5.3.280.0080.04712.71
5.3.270.0120.04812.73
5.3.260.0080.04612.72
5.3.250.0090.04612.72
5.3.240.0070.04912.72
5.3.230.0110.04512.71
5.3.220.0090.04612.68
5.3.210.0090.04912.68
5.3.200.0090.04612.68
5.3.190.0100.04612.68
5.3.180.0100.04612.67
5.3.170.0120.05412.67
5.3.160.0090.04912.67
5.3.150.0090.04812.67
5.3.140.0120.05512.66
5.3.130.0110.05212.66
5.3.120.0110.04112.66
5.3.110.0110.03912.66
5.3.100.0090.04012.12
5.3.90.0080.04412.08
5.3.80.0100.03712.07
5.3.70.0100.03712.08
5.3.60.0070.04512.06
5.3.50.0070.04212.00
5.3.40.0070.04112.00
5.3.30.0070.04211.94
5.3.20.0070.03911.71
5.3.10.0090.03811.68
5.3.00.0140.04511.66

preferences:
42.39 ms | 401 KiB | 5 Q