3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class_names = get_declared_classes(); foreach ($class_names as $class_name) { $rc = new ReflectionClass($class_name); $constructor = $rc->getConstructor(); if ($constructor != NULL) { $params = $constructor->getParameters(); echo "new $class_name("; foreach ($params as $param) { $name = $param->getName(); $opt = $param->isOptional(); if ($opt) { echo "[$name], "; } else { echo "$name, "; } } if (empty($params)) { echo "[none or dynamic]"; } echo ")\n"; } }

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.1.100.0030.00517.48
8.1.90.0070.00017.39
8.1.80.0080.00017.36
8.1.70.0060.00617.43
8.1.60.0140.00517.36
8.1.50.0110.00717.44
8.1.40.0000.01217.53
8.1.30.0110.00017.68
8.1.20.0080.00317.55
8.1.10.0110.00017.61
8.1.00.0060.00617.42
8.0.230.0030.00616.85
8.0.220.0040.00416.89
8.0.210.0030.00516.83
8.0.200.0000.01116.81
8.0.190.0120.00016.88
8.0.180.0050.00716.84
8.0.170.0030.01116.82
8.0.160.0100.00716.91
8.0.150.0160.00016.70
8.0.140.0060.01116.82
8.0.130.0100.00316.75
8.0.120.0110.00516.76
8.0.110.0170.00016.86
8.0.100.0140.00416.88
8.0.90.0120.00816.87
8.0.80.0070.01116.89
8.0.70.0110.00816.77
8.0.60.0080.00816.80
8.0.50.0050.01116.74
8.0.30.0130.00016.96
8.0.20.0030.00616.73
8.0.10.0070.00716.90
8.0.00.0090.00017.01
7.4.300.0150.00016.52
7.4.290.0110.00616.58
7.4.280.0120.00416.59
7.4.270.0110.00416.42
7.4.260.0140.00316.56
7.4.250.0140.00416.64
7.4.240.0120.00416.52
7.4.230.0100.00616.45
7.4.220.0050.01016.53
7.4.210.0100.00316.55
7.4.200.0090.00316.59
7.4.190.0050.00816.50
7.4.180.0130.00016.63
7.4.160.0110.00316.44
7.4.150.0120.00316.43
7.4.140.0100.00316.44
7.4.130.0100.00316.42
7.4.120.0130.00016.36
7.4.110.0080.00616.34
7.4.100.0100.00516.61
7.4.90.0150.00016.36
7.4.80.0110.00416.51
7.4.70.0080.00416.43
7.4.60.0100.00316.43
7.4.50.0100.00316.23
7.4.40.0060.00616.33
7.4.30.0070.00816.41
7.4.20.0050.00716.37
7.4.10.0000.01116.34
7.4.00.0040.00416.40
7.3.330.0100.00516.28
7.3.320.0150.00016.27
7.3.310.0120.00216.13
7.3.300.0160.00016.21
7.3.290.0070.00716.32
7.3.280.0150.00016.41
7.3.270.0080.00816.25
7.3.260.0080.00816.39
7.3.250.0150.00216.13
7.3.240.0160.00016.17
7.3.230.0100.00516.14
7.3.220.0100.00516.16
7.3.210.0050.01016.27
7.3.200.0050.01016.20
7.3.190.0140.00216.04
7.3.180.0150.00016.25
7.3.170.0050.01116.04
7.3.160.0070.00716.03
7.3.150.0150.00016.15
7.3.140.0120.00316.15
7.3.130.0150.00016.16
7.3.120.0120.00216.30
7.3.110.0100.00516.27
7.3.100.0090.00516.20
7.3.90.0070.00716.61
7.3.80.0040.01116.09
7.3.70.0050.01016.45
7.3.60.0100.00516.29
7.3.50.0120.00216.43
7.3.40.0080.00816.30
7.3.30.0050.00916.27
7.3.20.0110.00418.18
7.3.10.0160.00017.98
7.3.00.0110.00618.09
7.2.340.0110.00416.33
7.2.330.0110.00516.45
7.2.320.0060.00916.25
7.2.310.0160.00016.33
7.2.300.0140.00216.22
7.2.290.0110.00416.36
7.2.280.0060.00916.33
7.2.270.0150.00016.33
7.2.260.0130.00316.25
7.2.250.0150.00016.52
7.2.240.0120.00416.33
7.2.230.0180.00016.33
7.2.220.0100.00716.25
7.2.210.0080.00816.35
7.2.200.0130.00516.59
7.2.190.0120.00316.36
7.2.180.0120.00416.46
7.2.170.0080.00816.43
7.2.160.0110.00416.55
7.2.150.0120.00418.36
7.2.140.0060.01018.52
7.2.130.0080.00818.42
7.2.120.0080.00818.51
7.2.110.0090.00618.59
7.2.100.0110.00418.41
7.2.90.0130.00318.36
7.2.80.0130.00318.25
7.2.70.0120.00418.27
7.2.60.0090.00718.60
7.2.50.0120.00418.32
7.2.40.0160.00018.39
7.2.30.0160.00018.55
7.2.20.0130.00418.26
7.2.10.0160.00018.61
7.2.00.0100.00618.37
7.1.330.0110.00417.30
7.1.320.0110.00317.45
7.1.310.0080.00517.33
7.1.300.0110.00317.19
7.1.290.0050.00917.40
7.1.280.0110.00417.46
7.1.270.0150.00017.21
7.1.260.0000.01417.29
7.1.250.0090.00517.30
7.1.240.0140.00017.36
7.1.230.0110.00317.40
7.1.220.0110.00417.14
7.1.210.0090.00617.47
7.1.200.0070.00717.34
7.1.190.0090.00617.42
7.1.180.0140.00017.16
7.1.170.0110.00417.22
7.1.160.0070.00717.11
7.1.150.0000.01417.32
7.1.140.0120.00317.26
7.1.130.0110.00417.06
7.1.120.0150.00017.17
7.1.110.0100.00617.43
7.1.100.0100.00517.05
7.1.90.0150.00017.09
7.1.80.0030.01217.41
7.1.70.0140.00017.03
7.1.60.0110.00417.20
7.1.50.0150.00017.35
7.1.40.0120.00317.37
7.1.30.0150.00017.13
7.1.20.0080.00817.38
7.1.10.0110.00417.11
7.1.00.0100.00417.07
7.0.330.0110.00316.96
7.0.320.0070.00716.88
7.0.310.0070.00716.83
7.0.300.0110.00316.94
7.0.290.0140.00017.05
7.0.280.0110.00317.06
7.0.270.0090.00516.96
7.0.260.0100.00317.07
7.0.250.0140.00016.99
7.0.240.0140.00017.29
7.0.230.0090.00517.03
7.0.220.0070.00717.02
7.0.210.0120.00316.98
7.0.200.0080.00817.02
7.0.190.0150.00017.01
7.0.180.0090.00517.02
7.0.170.0120.00216.98
7.0.160.0090.00516.91
7.0.150.0130.00016.81
7.0.140.0140.00016.75
7.0.130.0110.00317.14
7.0.120.0100.00416.99
7.0.110.0000.01416.88
7.0.100.0070.00716.96
7.0.90.0090.00516.80
7.0.80.0070.00716.84
7.0.70.0070.00717.09
7.0.60.0110.00316.85
7.0.50.0080.00416.96
7.0.40.0090.00417.16
7.0.30.0050.00916.85
7.0.20.0070.00716.89
7.0.10.0070.00717.01
7.0.00.0070.00716.99
5.6.400.0000.01415.78
5.6.390.0100.00315.82
5.6.380.0070.00715.63
5.6.370.0120.00315.66
5.6.360.0070.00715.65
5.6.350.0130.00015.56
5.6.340.0140.00015.80
5.6.330.0160.00015.62
5.6.320.0080.00615.68
5.6.310.0090.00515.88
5.6.300.0120.00315.72
5.6.290.0090.00415.64
5.6.280.0070.00715.86
5.6.270.0140.00015.81
5.6.260.0100.00315.65
5.6.250.0070.00715.80
5.6.240.0100.00315.88
5.6.230.0130.00015.78
5.6.220.0100.00315.95
5.6.210.0080.00615.95
5.6.200.0140.00015.98
5.6.190.0050.00916.01
5.6.180.0100.00315.82
5.6.170.0140.00015.80
5.6.160.0140.00015.82
5.6.150.0030.01015.95
5.6.140.0090.00515.77
5.6.130.0130.00015.82
5.6.120.0090.00515.75
5.6.110.0110.00415.91
5.6.100.0080.00515.86
5.6.90.0090.00415.73
5.6.80.0090.00515.63
5.6.70.0030.01015.97
5.6.60.0130.00015.69
5.6.50.0100.00315.82
5.6.40.0040.00915.96
5.6.30.0080.00415.59
5.6.20.0090.00415.82
5.6.10.0000.01415.83
5.6.00.0070.00715.55
5.5.380.0100.00315.86
5.5.370.0070.00715.97
5.5.360.0050.00915.77
5.5.350.0050.00915.55
5.5.340.0110.00415.80
5.5.330.0120.00215.89
5.5.320.0100.00315.93
5.5.310.0100.00315.55
5.5.300.0140.00015.82
5.5.290.0050.00915.81
5.5.280.0000.01415.59
5.5.270.0050.00915.88
5.5.260.0050.00915.70
5.5.250.0110.00415.69
5.5.240.0100.00315.66
5.5.230.0060.00715.82
5.5.220.0060.00715.98
5.5.210.0070.00716.04
5.5.200.0100.00315.81
5.5.190.0090.00415.64
5.5.180.0130.00015.61
5.5.170.0090.00415.79
5.5.160.0130.00015.79
5.5.150.0110.00315.46
5.5.140.0110.00315.69
5.5.130.0060.00615.51
5.5.120.0090.00315.69
5.5.110.0090.00415.49
5.5.100.0090.00315.58
5.5.90.0090.00315.76
5.5.80.0130.00015.88
5.5.70.0080.00515.93
5.5.60.0080.00415.67
5.5.50.0120.00015.53
5.5.40.0060.00615.56
5.5.30.0030.01015.57
5.5.20.0080.00515.98
5.5.10.0080.00515.90
5.5.00.0060.00715.83
5.4.450.0070.00312.63
5.4.440.0080.00312.69
5.4.430.0050.00512.58
5.4.420.0070.00412.62
5.4.410.0060.00412.62
5.4.400.0080.00312.69
5.4.390.0110.00012.44
5.4.380.0070.00412.47
5.4.370.0080.00312.51
5.4.360.0070.00312.47
5.4.350.0070.00412.42
5.4.340.0040.00812.46
5.4.330.0110.00012.46
5.4.320.0090.00312.40
5.4.310.0110.00012.52
5.4.300.0070.00512.65
5.4.290.0100.00212.62
5.4.280.0130.00012.63
5.4.270.0000.01212.69
5.4.260.0060.00612.34
5.4.250.0000.01112.36
5.4.240.0120.00012.63
5.4.230.0040.00712.31
5.4.220.0090.00312.38
5.4.210.0080.00412.53
5.4.200.0110.00012.29
5.4.190.0040.00712.38
5.4.180.0090.00312.50
5.4.170.0110.00012.43
5.4.160.0040.00712.57
5.4.150.0050.00512.57
5.4.140.0000.01112.38
5.4.130.0100.00012.43
5.4.120.0070.00412.51
5.4.110.0030.00812.52
5.4.100.0030.00712.47
5.4.90.0060.00412.46
5.4.80.0070.00412.80
5.4.70.0100.00012.51
5.4.60.0050.00512.57
5.4.50.0100.00012.39
5.4.40.0040.00712.47
5.4.30.0070.00312.51
5.4.20.0070.00312.51
5.4.10.0100.00012.68
5.4.00.0030.00812.55
5.3.290.0040.00813.01
5.3.280.0040.00812.89
5.3.270.0120.00013.30
5.3.260.0100.00312.91
5.3.250.0080.00412.95
5.3.240.0080.00413.09
5.3.230.0120.00013.14
5.3.220.0070.00412.77
5.3.210.0110.00012.80
5.3.200.0070.00412.97
5.3.190.0080.00312.77
5.3.180.0040.00812.98
5.3.170.0040.00813.00
5.3.160.0040.00813.13
5.3.150.0130.00012.89
5.3.140.0120.00012.82
5.3.130.0090.00312.78
5.3.120.0070.00413.16
5.3.110.0090.00212.94
5.3.100.0070.00512.93
5.3.90.0070.00312.78
5.3.80.0000.01012.97
5.3.70.0100.00012.70
5.3.60.0100.00013.20
5.3.50.0030.00712.69
5.3.40.0080.00312.74
5.3.30.0050.00512.96
5.3.20.0100.00012.82
5.3.10.0000.01112.55
5.3.00.0050.00512.86
5.2.170.0030.00611.88
5.2.160.0040.00411.85
5.2.150.0080.00012.11
5.2.140.0050.00311.78
5.2.130.0070.00211.86
5.2.120.0060.00312.05
5.2.110.0000.00912.14
5.2.100.0050.00512.10
5.2.90.0000.00912.03
5.2.80.0070.00311.87
5.2.70.0050.00511.98
5.2.60.0100.00011.66
5.2.50.0100.00011.96
5.2.40.0110.00011.80
5.2.30.0050.00511.86
5.2.20.0100.00011.79
5.2.10.0090.00011.82
5.2.00.0070.00311.51
5.1.60.0000.00910.84
5.1.50.0070.00210.84
5.1.40.0110.00011.21
5.1.30.0050.00511.25
5.1.20.0080.00311.15
5.1.10.0030.00610.86
5.1.00.0060.00210.93
5.0.50.0000.0079.95
5.0.40.0070.00010.00
5.0.30.0050.0039.68
5.0.20.0030.0039.75
5.0.10.0050.0029.55
5.0.00.0060.0009.54
4.4.90.0040.0009.01
4.4.80.0040.0009.01
4.4.70.0000.0039.01
4.4.60.0040.0009.01
4.4.50.0020.0029.01
4.4.40.0020.0029.01
4.4.30.0030.0009.01
4.4.20.0040.0009.01
4.4.10.0040.0009.01
4.4.00.0020.0029.01
4.3.110.0000.0039.01
4.3.100.0040.0009.01
4.3.90.0040.0009.01
4.3.80.0000.0049.01
4.3.70.0040.0009.01
4.3.60.0040.0009.01
4.3.50.0040.0009.01
4.3.40.0040.0009.01
4.3.30.0030.0009.01
4.3.20.0000.0039.01
4.3.10.0020.0009.01
4.3.00.0030.0009.01

preferences:
25.58 ms | 411 KiB | 12 Q