3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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(); print_r($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.70.0140.00718.25
8.3.60.0120.01218.18
8.3.50.0080.00821.94
8.3.40.0070.00718.83
8.3.30.0100.00319.05
8.3.20.0030.00720.34
8.3.10.0070.00722.15
8.3.00.0070.00022.43
8.2.190.0090.00616.58
8.2.180.0060.00918.02
8.2.170.0100.00322.96
8.2.160.0070.00720.79
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.25
8.2.110.0000.01022.18
8.2.100.0100.00019.45
8.2.90.0000.00819.42
8.2.80.0080.00019.77
8.2.70.0090.00317.38
8.2.60.0050.00218.15
8.2.50.0000.00718.07
8.2.40.0000.00718.17
8.2.30.0040.00418.32
8.2.20.0030.00317.96
8.2.10.0040.00417.95
8.2.00.0040.00417.97
8.1.280.0130.00625.92
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0090.00023.87
8.1.230.0080.00419.22
8.1.220.0000.00717.80
8.1.210.0070.00018.77
8.1.200.0060.00317.38
8.1.190.0040.00417.66
8.1.180.0040.00418.10
8.1.170.0080.00018.77
8.1.160.0000.00722.21
8.1.150.0040.00418.82
8.1.140.0040.00417.52
8.1.130.0000.00618.00
8.1.120.0000.00717.56
8.1.110.0070.00017.52
8.1.100.0000.00717.61
8.1.90.0030.00317.63
8.1.80.0000.00817.56
8.1.70.0070.00017.63
8.1.60.0030.00617.69
8.1.50.0050.00217.60
8.1.40.0050.00317.78
8.1.30.0030.00617.82
8.1.20.0040.00417.78
8.1.10.0070.00017.71
8.1.00.0050.00317.66
8.0.300.0030.00318.77
8.0.290.0070.00016.93
8.0.280.0030.00318.51
8.0.270.0030.00317.21
8.0.260.0030.00316.81
8.0.250.0000.00616.91
8.0.240.0030.00317.05
8.0.230.0060.00016.86
8.0.220.0060.00016.89
8.0.210.0030.00316.88
8.0.200.0000.00716.92
8.0.190.0070.00017.02
8.0.180.0000.00717.01
8.0.170.0040.00416.90
8.0.160.0000.00816.98
8.0.150.0030.00316.93
8.0.140.0030.00316.83
8.0.130.0030.00313.52
8.0.120.0000.00816.82
8.0.110.0030.00316.79
8.0.100.0080.00016.86
8.0.90.0030.00316.76
8.0.80.0030.01616.89
8.0.70.0000.00717.02
8.0.60.0030.00316.96
8.0.50.0030.00316.77
8.0.30.0110.00716.98
8.0.20.0140.00517.40
8.0.10.0040.00417.09
8.0.00.0060.01216.79
7.4.330.0000.00515.09
7.4.320.0040.00416.66
7.4.300.0000.00616.43
7.4.290.0050.00316.64
7.4.280.0040.00416.59
7.4.270.0030.00616.46
7.4.260.0000.00716.52
7.4.250.0040.00416.59
7.4.240.0060.00216.58
7.4.230.0070.00016.50
7.4.220.0090.01016.68
7.4.210.0070.01116.62
7.4.200.0000.00816.33
7.4.190.0070.00016.39
7.4.160.0130.00616.40
7.4.150.0110.00717.40
7.4.140.0120.00517.86
7.4.130.0120.00616.64
7.4.120.0090.01016.50
7.4.110.0070.01016.39
7.4.100.0080.01116.54
7.4.90.0070.01116.55
7.4.80.0160.00719.39
7.4.70.0110.00616.57
7.4.60.0140.00316.53
7.4.50.0020.00516.44
7.4.40.0040.02122.77
7.4.30.0160.00316.45
7.4.00.0030.00914.86
7.3.330.0050.00013.20
7.3.320.0050.00013.29
7.3.310.0040.00416.23
7.3.300.0080.00016.32
7.3.290.0040.01916.33
7.3.280.0090.00816.25
7.3.270.0110.00817.40
7.3.260.0140.01216.56
7.3.250.0130.00716.46
7.3.240.0120.00816.69
7.3.230.0120.00616.49
7.3.210.0220.00316.55
7.3.200.0090.00919.39
7.3.190.0110.00816.64
7.3.180.0120.00616.43
7.3.170.0040.01316.45
7.3.160.0030.01916.49
7.3.120.0040.00914.84
7.2.330.0080.00816.64
7.2.320.0030.01416.61
7.2.310.0110.00716.70
7.2.300.0080.00916.54
7.2.290.0060.01816.79
7.2.60.0030.01017.05
7.2.00.0040.00919.54
7.1.200.0060.00615.76
7.1.70.0040.00416.93
7.1.60.0120.00617.50
7.1.50.0160.00434.97
7.0.200.0300.00716.91

preferences:
34.6 ms | 401 KiB | 5 Q