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.0030.01016.49
8.3.50.0070.01221.88
8.3.40.0120.00618.71
8.3.30.0070.00718.92
8.3.20.0040.00420.04
8.3.10.0070.00023.55
8.3.00.0060.00322.29
8.2.180.0110.00416.50
8.2.170.0100.00722.96
8.2.160.0000.01320.38
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00422.12
8.2.110.0100.00021.00
8.2.100.0060.00617.72
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0000.00918.09
8.2.30.0040.00417.89
8.2.20.0020.00517.39
8.2.10.0000.00717.45
8.2.00.0070.00017.56
8.1.280.0040.01125.92
8.1.270.0030.01723.70
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.71
8.1.230.0000.01117.70
8.1.220.0040.00417.74
8.1.210.0050.00518.77
8.1.200.0090.00016.88
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0080.00021.93
8.1.150.0070.00018.54
8.1.140.0030.00517.24
8.1.130.0000.00717.66
8.1.120.0000.00717.31
8.1.110.0000.00717.20
8.1.100.0080.00017.21
8.1.90.0000.00717.24
8.1.80.0030.00317.32
8.1.70.0000.00717.18
8.1.60.0060.00317.44
8.1.50.0030.00517.39
8.1.40.0000.00817.38
8.1.30.0040.00417.48
8.1.20.0050.00217.43
8.1.10.0040.00417.46
8.1.00.0000.00717.36
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0040.00417.12
8.0.260.0000.00616.77
8.0.250.0060.00016.80
8.0.240.0050.00216.74
8.0.230.0000.00816.81
8.0.220.0030.00316.75
8.0.210.0030.00316.68
8.0.200.0060.00016.80
8.0.190.0040.00416.77
8.0.180.0040.00416.78
8.0.170.0040.00416.66
8.0.160.0000.00816.69
8.0.150.0050.00216.72
8.0.140.0000.00816.54
8.0.130.0050.00013.44
8.0.120.0000.00816.68
8.0.110.0000.00716.79
8.0.100.0000.00716.62
8.0.90.0000.00816.73
8.0.80.0090.01316.80
8.0.70.0000.00716.71
8.0.60.0080.00016.61
8.0.50.0000.00816.86
8.0.30.0180.00417.02
8.0.20.0030.01617.40
8.0.10.0000.00716.86
8.0.00.0120.00916.65
7.4.330.0020.00215.13
7.4.320.0000.00616.51
7.4.300.0070.00016.50
7.4.290.0070.00016.46
7.4.280.0030.00716.35
7.4.270.0040.00316.22
7.4.260.0040.00416.42
7.4.250.0090.00016.39
7.4.240.0000.00716.30
7.4.230.0000.00716.19
7.4.220.0110.00716.44
7.4.210.0060.00816.38
7.4.200.0050.00316.29
7.4.190.0070.00016.45
7.4.160.0030.01316.31
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0090.00916.30
7.4.120.0130.00716.37
7.4.110.0100.00616.33
7.4.100.0120.00916.49
7.4.90.0160.00316.38
7.4.80.0030.01919.39
7.4.70.0080.00816.46
7.4.60.0030.01216.50
7.4.50.0020.00216.27
7.4.40.0090.00622.77
7.4.30.0090.00616.22
7.3.330.0020.00213.07
7.3.320.0020.00213.28
7.3.310.0070.00015.97
7.3.300.0040.00416.19
7.3.290.0070.00716.10
7.3.280.0050.01116.13
7.3.270.0120.00917.40
7.3.260.0100.00616.07
7.3.250.0090.00816.24
7.3.240.0100.00616.16
7.3.230.0100.00716.39
7.3.210.0110.00616.13
7.3.200.0120.00619.39
7.3.190.0040.01616.38
7.3.180.0100.00616.24
7.3.170.0060.01016.27
7.3.160.0140.00216.23
7.2.330.0080.01016.42
7.2.320.0090.01216.52
7.2.310.0100.01316.21
7.2.300.0100.00716.49
7.2.290.0130.00316.59
5.5.120.0060.01110.84
5.5.110.0140.00010.93
5.5.100.0130.00010.79
5.5.90.0130.00010.79
5.5.80.0070.00510.91
5.5.70.0120.00410.73
5.5.60.0130.00010.66
5.5.50.0080.00810.90
5.5.40.0120.00210.87
5.5.30.0040.00910.98
5.5.20.0050.00510.91
5.5.10.0000.01010.88
5.5.00.0000.01210.76
5.4.280.0070.00810.74
5.4.270.0100.00310.66
5.4.260.0100.00510.62
5.4.250.0060.00610.88
5.4.240.0130.00210.80
5.4.230.0060.00610.97
5.4.220.0100.00310.71
5.4.210.0040.00810.70
5.4.200.0090.00410.97
5.4.190.0080.00010.70
5.4.180.0040.00710.69
5.4.170.0000.00810.89
5.4.160.0060.00610.98
5.4.150.0060.00610.73
5.4.140.0000.00910.75
5.4.130.0080.00310.69
5.4.120.0060.00610.99
5.4.110.0060.00610.58
5.4.100.0100.00010.75
5.4.90.0090.00010.48
5.4.80.0060.00310.42
5.4.70.0000.01110.85
5.4.60.0040.00710.47
5.4.50.0100.00010.42
5.4.40.0030.00710.85
5.4.30.0050.00510.80
5.4.20.0030.00610.64
5.4.10.0030.00710.71
5.4.00.0040.00410.67
5.3.280.0040.00810.21
5.3.270.0060.00310.23
5.3.260.0030.00710.22
5.3.250.0040.00410.05
5.3.240.0030.00510.16
5.3.230.0000.01010.06
5.3.220.0060.00310.08
5.3.210.0060.00410.15
5.3.200.0040.00710.07
5.3.190.0080.0029.99
5.3.180.0050.00510.22
5.3.170.0030.00710.23
5.3.160.0000.00810.30
5.3.150.0000.00810.30
5.3.140.0020.00510.22
5.3.130.0090.00010.11
5.3.120.0090.00010.23
5.3.110.0060.00310.11
5.3.100.0000.01010.16
5.3.90.0000.00810.25
5.3.80.0030.00810.06
5.3.70.0060.0039.93
5.3.60.0070.00310.30
5.3.50.0050.00510.08
5.3.40.0070.0039.96
5.3.30.0090.00110.12
5.3.20.0100.00010.01
5.3.10.0040.0049.70
5.3.00.0110.0009.89

preferences:
50.73 ms | 400 KiB | 5 Q