3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = new \ReflectionClass(\DateTimeImmutable::class); $methods = array_map(function ($m) { return $m->getName() . '(' . implode(',', array_map(function ($p) { return $p->getType() . ' $' . $p->getName() . ($p->isOptional() ? ' = ' . var_export($p->getDefaultValue(), true) : ''); }, $m->getParameters())) . ')' . ($m->getReturnType() ? (': ' . $m->getReturnType()) : ''); }, $c->getMethods()); $properties = array_map(function ($m) { return $m->getName(); }, $c->getProperties()); var_dump($methods, $properties);

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.4.10.0000.01022.19
8.3.140.0110.00717.40
8.3.130.0040.00418.44
8.3.120.0150.00618.84
8.3.110.0030.00618.43
8.3.100.0100.01018.28
8.3.90.0040.00426.77
8.3.80.0050.00516.75
8.3.70.0070.01116.75
8.3.60.0130.00916.34
8.3.50.0070.01120.15
8.3.40.0140.00521.61
8.3.30.0120.00419.69
8.3.20.0040.00723.91
8.3.10.0080.00524.05
8.3.00.0110.00223.39
8.2.260.0140.00416.80
8.2.250.0030.00618.34
8.2.240.0030.00717.23
8.2.230.0040.00420.94
8.2.220.0160.00324.06
8.2.210.0060.00326.77
8.2.200.0090.00016.36
8.2.190.0170.00016.58
8.2.180.0100.01025.92
8.2.170.0140.00519.71
8.2.160.0070.01022.39
8.2.150.0080.00623.26
8.2.140.0090.00423.26
8.2.130.0080.00424.06
8.2.120.0040.00723.57
8.2.110.0080.00420.63
8.2.100.0060.00520.66
8.2.90.0140.00320.56
8.2.80.0110.00721.00
8.2.70.0160.00418.77
8.2.60.0070.01020.62
8.2.50.0150.00320.91
8.2.40.0060.01220.58
8.2.30.0130.00620.41
8.2.20.0100.01020.53
8.2.10.0120.00620.43
8.2.00.0080.00820.56
8.1.310.0030.00616.35
8.1.300.0080.00015.94
8.1.290.0040.00730.84
8.1.280.0070.00725.92
8.1.270.0070.00623.98
8.1.260.0050.00725.13
8.1.250.0030.00925.90
8.1.240.0070.00619.29
8.1.230.0060.00819.41
8.1.220.0040.01120.59
8.1.210.0070.00720.23
8.1.200.0120.00320.58
8.1.190.0040.01220.46
8.1.180.0060.00920.21
8.1.170.0060.01020.38
8.1.160.0040.01120.32
8.1.150.0040.01120.53
8.1.140.0030.01220.66
8.1.130.0040.01120.52
8.1.120.0000.01520.31
8.1.110.0090.00620.33
8.1.100.0000.01521.36
8.1.90.0090.00620.52
8.1.80.0040.00618.79
8.1.70.0090.00620.59
8.1.60.0040.01120.38
8.1.50.0110.00420.33
8.1.40.0120.00320.51
8.1.30.0040.01120.64
8.1.20.0110.00421.66
8.1.10.0000.01520.57
8.1.00.0090.00620.38
8.0.300.0080.00819.63
8.0.290.0120.00919.68
8.0.280.0180.00717.81
8.0.270.0150.00317.83
8.0.260.0320.00317.81
8.0.250.0200.01017.86
8.0.240.0230.00417.89
8.0.230.0190.00317.89
8.0.220.0180.00717.82
8.0.210.0280.00917.73
8.0.200.0330.00317.82
8.0.190.0270.00617.89
8.0.180.0180.00717.86
8.0.170.0140.01418.05
8.0.160.0230.00717.78
8.0.150.0200.00817.70
8.0.140.0210.00617.76
8.0.130.0140.02017.89
8.0.120.0270.00617.73
8.0.110.0280.00717.85
8.0.100.0260.00317.89
8.0.90.0300.00617.52
8.0.80.0280.00317.82
8.0.70.0080.01217.83
8.0.60.0210.00717.74
8.0.50.0260.00017.68
8.0.30.0080.00819.61
8.0.20.0130.01017.86
8.0.10.0220.00619.67
7.4.330.0150.00717.45
7.4.320.0230.00419.23
7.4.300.0130.01318.91
7.4.290.0170.01218.79
7.4.280.0210.00817.34
7.4.270.0260.00317.32
7.4.260.0230.00417.31
7.4.250.0190.00817.23
7.4.240.0200.01017.35
7.4.230.0230.00517.29
7.4.220.0240.00717.21
7.4.210.0290.00319.03
7.4.200.0290.00017.40
7.4.190.0290.00317.39
7.4.180.0250.00617.52
7.4.160.0290.00317.19
7.4.150.0240.00617.34
7.4.140.0160.01617.02
7.4.130.0270.00017.04
7.4.120.0260.00317.34
7.4.110.0300.00017.13
7.4.100.0290.00318.97
7.4.90.0260.00317.25
7.4.80.0220.00417.43
7.4.70.0260.00317.35
7.4.60.0190.01017.23
7.4.50.0260.00318.97
7.4.40.0210.00517.28
7.4.30.0220.00417.73
7.4.20.0250.00317.51
7.4.10.0300.00317.42
7.4.00.0230.01017.43

preferences:
36.71 ms | 403 KiB | 5 Q