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(); $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.0160.05918.33
8.3.50.0150.05322.05
8.3.40.0100.05218.55
8.3.30.0100.06419.11
8.3.20.0030.02820.34
8.3.10.0000.02921.97
8.3.00.0130.02622.39
8.2.180.0170.05516.88
8.2.170.0140.06122.96
8.2.160.0130.04220.46
8.2.150.0070.03024.18
8.2.140.0030.02424.66
8.2.130.0030.02726.16
8.2.120.0070.02319.49
8.2.110.0100.06021.96
8.2.100.0100.03717.78
8.2.90.0070.03319.17
8.2.80.0030.03518.04
8.2.70.0000.04517.48
8.2.60.0000.04117.93
8.2.50.0030.03618.07
8.2.40.0030.03418.28
8.2.30.0100.03018.23
8.2.20.0030.03417.81
8.2.10.0030.03417.89
8.2.00.0000.03917.82
8.1.280.0070.06525.92
8.1.270.0070.03323.83
8.1.260.0030.02826.35
8.1.250.0030.02828.09
8.1.240.0030.04023.79
8.1.230.0030.04519.34
8.1.220.0030.03417.91
8.1.210.0030.03818.77
8.1.200.0100.03917.38
8.1.190.0070.03117.66
8.1.180.0070.03418.10
8.1.170.0060.03218.76
8.1.160.0070.03322.00
8.1.150.0030.03618.75
8.1.140.0060.03217.63
8.1.130.0030.03717.95
8.1.120.0100.03417.59
8.1.110.0000.03917.45
8.1.100.0000.03917.48
8.1.90.0070.03417.51
8.1.80.0040.03517.56
8.1.70.0000.03917.54
8.1.60.0000.04317.55
8.1.50.0060.03617.63
8.1.40.0030.04217.64
8.1.30.0040.04217.78
8.1.20.0100.03517.84
8.1.10.0000.05017.61
8.1.00.0070.03917.39
8.0.300.0070.03018.77
8.0.290.0030.03817.30
8.0.280.0060.02818.63
8.0.270.0030.03717.29
8.0.260.0030.03316.93
8.0.250.0060.02917.07
8.0.240.0000.03917.03
8.0.230.0030.03317.07
8.0.220.0040.03616.96
8.0.210.0100.02617.02
8.0.200.0000.03717.12
8.0.190.0000.03917.05
8.0.180.0070.03717.03
8.0.170.0000.04217.04
8.0.160.0070.03717.07
8.0.150.0030.04117.04
8.0.140.0030.03716.98
8.0.130.0070.02213.38
8.0.120.0030.04016.96
8.0.110.0030.04317.06
8.0.100.0000.04417.05
8.0.90.0030.03616.85
8.0.80.0100.06817.00
8.0.70.0030.04117.06
8.0.60.0000.04817.07
8.0.50.0100.03716.98
8.0.30.0120.09017.05
8.0.20.0190.08617.40
8.0.10.0070.03817.13
8.0.00.0100.08816.80
7.4.330.0000.02115.00
7.4.320.0000.03216.70
7.4.300.0000.03216.72
7.4.290.0030.03616.73
7.4.280.0030.03516.73
7.4.270.0030.03716.63
7.4.260.0030.04216.55
7.4.250.0030.03516.68
7.4.240.0080.03116.65
7.4.230.0030.03516.70
7.4.220.0100.07716.54
7.4.210.0110.06816.64
7.4.200.0060.03116.80
7.4.190.0070.03016.72
7.4.160.0200.09616.93
7.4.150.0160.08117.40
7.4.140.0120.08417.86
7.4.130.0150.10816.59
7.4.120.0120.08216.66
7.4.110.0290.06916.84
7.4.100.0150.09216.71
7.4.90.0180.07916.61
7.4.80.0070.09119.39
7.4.70.0060.12016.64
7.4.60.0100.11816.71
7.4.50.0130.04116.68
7.4.40.0030.06422.77
7.4.30.0100.09216.46
7.4.00.0100.07115.21
7.3.330.0030.03113.33
7.3.320.0030.03313.32
7.3.310.0000.05016.39
7.3.300.0030.04716.55
7.3.290.0130.13216.39
7.3.280.0090.10616.44
7.3.270.0190.20417.40
7.3.260.0300.14616.59
7.3.250.0170.10116.58
7.3.240.0130.10216.54
7.3.230.0130.10016.39
7.3.210.0130.13716.74
7.3.200.0030.14519.39
7.3.190.0160.22816.57
7.3.180.0170.19816.41
7.3.170.0120.30116.52
7.3.160.0070.21016.43
7.3.120.0100.22515.17
7.3.110.0170.22715.15
7.3.100.0030.25414.97
7.3.90.0070.23314.95
7.3.80.0030.24215.21
7.3.70.0130.21015.12
7.3.60.0070.22514.97
7.3.50.0100.22714.98
7.3.40.0030.22614.84
7.3.30.0100.15915.07
7.3.20.0070.13216.81
7.3.10.0080.13616.44
7.3.00.0050.15816.59
7.2.330.0260.30616.86
7.2.320.0100.23416.88
7.2.310.0030.28216.55
7.2.300.0100.20916.59
7.2.290.0120.20416.90
7.2.240.0030.23515.36
7.2.230.0030.26215.17
7.2.220.0030.25215.04
7.2.210.0070.23615.16
7.2.200.0070.28214.82
7.2.190.0030.25115.30
7.2.180.0100.24715.14
7.2.170.0030.21615.14
7.2.160.0100.14915.23
7.2.150.0000.14817.05
7.2.140.0070.13917.04
7.2.130.0070.16916.71
7.2.120.0080.16816.80
7.2.110.0070.17316.92
7.2.100.0080.15616.57
7.2.90.0070.16716.74
7.2.80.0030.16116.76
7.2.70.0070.16716.61
7.2.60.0090.14916.98
7.2.50.0050.15116.87
7.2.40.0130.16416.80
7.2.30.0110.15716.76
7.2.20.0150.15116.93
7.2.10.0130.14416.81
7.2.00.0140.14817.66
7.1.330.0030.23415.73
7.1.320.0070.23015.93
7.1.310.0070.25015.86
7.1.300.0070.23415.71
7.1.290.0060.22815.87
7.1.280.0070.22815.74
7.1.270.0070.15415.66
7.1.260.0130.15115.62
7.1.250.0100.15215.40
7.1.200.0000.13815.91
7.1.100.0070.15118.28
7.1.70.0030.14117.19
7.1.60.0130.18519.82
7.1.50.0140.18316.86
7.1.00.0070.14322.54
7.0.200.0070.13016.82
7.0.140.0030.14721.97
7.0.100.0230.14320.04
7.0.90.0030.15020.11
7.0.80.0070.14319.97
7.0.70.0100.14019.93
7.0.60.0270.12319.94
7.0.50.0070.09020.45
7.0.40.0070.13320.18
7.0.30.0070.11020.17
7.0.20.0070.13720.05
7.0.10.0030.14720.11
7.0.00.0030.14720.09
5.6.280.0000.33321.11
5.6.250.0070.29020.91
5.6.240.0030.28721.13
5.6.230.0130.28320.91
5.6.220.0000.30321.01
5.6.210.0130.29320.93
5.6.200.0100.32721.46
5.6.190.0000.31021.59
5.6.180.0070.31021.69
5.6.170.0100.33021.50
5.6.160.0070.27721.45
5.6.150.0130.31021.40
5.6.140.0130.31021.59
5.6.130.0070.27321.63
5.6.120.0130.32321.55
5.6.110.0130.29721.52
5.6.100.0030.27721.63
5.6.90.0070.24321.50
5.6.80.0130.33721.01
5.6.70.0070.32020.89
5.6.60.0030.32320.99
5.6.50.0030.30320.92
5.6.40.0130.28020.90
5.6.30.0130.26020.93
5.6.20.0100.27020.99
5.6.10.0070.27020.87
5.6.00.0130.33720.88
5.5.380.0070.31320.65
5.5.370.0000.31020.71
5.5.360.0030.26320.64
5.5.350.0130.31320.71
5.5.340.0130.30321.20
5.5.330.0030.27321.09
5.5.320.0070.28321.21
5.5.310.0170.29721.16
5.5.300.0070.32721.17
5.5.290.0070.33021.18
5.5.280.0100.32021.13
5.5.270.0070.39321.42
5.5.260.0130.32321.30
5.5.250.0100.31021.26
5.5.240.0100.37720.68
5.5.230.0100.25320.79
5.5.220.0000.33020.75
5.5.210.0330.25720.77
5.5.200.0100.32720.66
5.5.190.0100.30020.76
5.5.180.0070.26320.73
5.5.160.0070.24320.60
5.5.150.0070.26720.64
5.5.140.0030.34720.60
5.5.130.0130.25720.79
5.5.120.0070.26320.62
5.5.110.0030.34320.76
5.5.100.0070.29020.59
5.5.90.0070.36320.61
5.5.80.0030.25320.46
5.5.70.0030.34720.61
5.5.60.0100.33020.58
5.5.50.0100.36020.70
5.5.40.0030.33720.57
5.5.30.0030.31320.57
5.5.20.0070.27720.56
5.5.10.0030.31320.32
5.5.00.0200.27720.61
5.4.450.0070.27719.59
5.4.440.0000.24719.50
5.4.430.0070.23019.80
5.4.420.0030.21319.54
5.4.410.0070.28719.41
5.4.400.0100.27319.19
5.4.390.0170.27319.22
5.4.380.0000.26719.25
5.4.370.0130.24719.17
5.4.360.0000.29019.27
5.4.350.0100.27319.27
5.4.340.0030.22719.18
5.4.320.0070.29319.27
5.4.310.0100.26319.05
5.4.300.0100.27019.26
5.4.290.0000.22019.26
5.4.280.0130.26019.15
5.4.270.0000.28019.17
5.4.260.0070.26719.17
5.4.250.0070.24719.30
5.4.240.0070.26319.17
5.4.230.0070.26019.18
5.4.220.0070.30319.33
5.4.210.0030.30319.00
5.4.200.0130.30719.26
5.4.190.0170.23019.32
5.4.180.0000.29019.33
5.4.170.0000.23319.03
5.4.160.0100.18019.15
5.4.150.0170.28719.14
5.4.140.0000.26016.49
5.4.130.0130.20316.54
5.4.120.0100.28016.62
5.4.110.0070.26316.59
5.4.100.0070.20716.43
5.4.90.0070.26716.71
5.4.80.0000.28716.46
5.4.70.0030.22016.49
5.4.60.0030.24316.65
5.4.50.0070.27316.64
5.4.40.0100.25016.85
5.4.30.0070.26316.66
5.4.20.0000.28016.51
5.4.10.0100.23016.58
5.4.00.0100.22016.09
5.3.290.0070.24015.05
5.3.280.0130.26014.99
5.3.270.0070.21014.90
5.3.260.0100.22714.91
5.3.250.0130.26015.04
5.3.240.0030.23314.90
5.3.230.0070.25014.88
5.3.220.0030.26314.99
5.3.210.0030.25014.97
5.3.200.0070.28014.94
5.3.190.0030.20715.00
5.3.180.0070.19714.96
5.3.170.0030.22014.91
5.3.160.0170.24714.84
5.3.150.0000.27015.00
5.3.140.0070.24014.94
5.3.130.0100.27014.95
5.3.120.0200.24314.97
5.3.110.0070.28714.98
5.3.100.0000.21714.48
5.3.90.0000.22314.47
5.3.80.0030.22714.46
5.3.70.0070.21314.38
5.3.60.0030.26314.31
5.3.50.0130.25014.35
5.3.40.0100.24014.32
5.3.30.0070.21014.22
5.3.20.0070.21714.15
5.3.10.0000.20014.05
5.3.00.0130.18713.93
5.2.170.0030.24311.63
5.2.160.0030.24011.54
5.2.150.0030.20011.38
5.2.140.0030.20711.62
5.2.130.0100.25011.51
5.2.120.0100.20011.49
5.2.110.0030.18711.52
5.2.100.0000.19311.36
5.2.90.0070.18311.52
5.2.80.0070.16311.55
5.2.70.0230.18011.34
5.2.60.0030.18011.30
5.2.50.0000.22311.22
5.2.40.0070.19711.26
5.2.30.0030.17011.23
5.2.20.0000.17311.37
5.2.10.0100.19311.13
5.2.00.0000.34711.19
5.1.60.0030.20710.53
5.1.50.0000.20010.48
5.1.40.0030.20010.46
5.1.30.0000.20310.91
5.1.20.0000.22310.91
5.1.10.0000.16710.39
5.1.00.0030.18710.38
5.0.50.0000.1139.02
5.0.40.0000.1178.85
5.0.30.0070.1178.73
5.0.20.0030.1408.67
5.0.10.0000.1438.69
5.0.00.0000.1608.50
4.4.90.0030.0138.50
4.4.80.0000.0178.50
4.4.70.0000.0208.50
4.4.60.0000.0178.50
4.4.50.0070.0138.50
4.4.40.0000.0278.50
4.4.30.0000.0138.50
4.4.20.0000.0138.50
4.4.10.0000.0138.50
4.4.00.0000.0278.50
4.3.110.0000.0178.50
4.3.100.0030.0138.50
4.3.90.0030.0378.50
4.3.80.0000.0608.50
4.3.70.0000.0338.50
4.3.60.0030.0238.50
4.3.50.0000.0208.50
4.3.40.0030.0208.50
4.3.30.0000.0308.50
4.3.20.0000.0308.50
4.3.10.0030.0378.50
4.3.00.0100.0278.50

preferences:
31.28 ms | 401 KiB | 5 Q