3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(bar $a = null, $b) { } $r = new ReflectionParameter('foo', 0); try { $r->getClass(); } catch (\Exception $e) { echo $e->getMessage(); } var_dump($r->isNullAllowed());

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.0140.00716.47
8.3.50.0070.01221.99
8.3.40.0000.01618.79
8.3.30.0140.00318.83
8.3.20.0080.00020.17
8.3.10.0050.00323.61
8.3.00.0040.00419.38
8.2.180.0130.00918.48
8.2.170.0120.00322.96
8.2.160.0120.00620.43
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0090.00317.50
8.2.120.0080.00026.35
8.2.110.0060.00319.05
8.2.100.0120.00017.97
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0100.00017.91
8.2.50.0080.00018.07
8.2.40.0000.00819.34
8.2.30.0000.00720.50
8.2.20.0070.00017.62
8.2.10.0070.00017.95
8.2.00.0030.00617.99
8.1.280.0030.01025.92
8.1.270.0080.00022.14
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0090.00321.91
8.1.230.0070.00320.86
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0000.00721.88
8.1.150.0040.00418.88
8.1.140.0050.00319.47
8.1.130.0030.00317.64
8.1.120.0050.00317.36
8.1.110.0050.00217.43
8.1.100.0040.00417.47
8.1.90.0000.00717.31
8.1.80.0030.00617.39
8.1.70.0000.00717.29
8.1.60.0040.00417.56
8.1.50.0040.00417.45
8.1.40.0030.00617.42
8.1.30.0030.00617.63
8.1.20.0040.00417.55
8.1.10.0040.00417.57
8.1.00.0000.00817.42
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0040.00418.33
8.0.270.0090.00016.82
8.0.260.0000.00617.30
8.0.250.0000.00816.93
8.0.240.0000.00716.98
8.0.230.0070.00016.82
8.0.220.0030.00316.87
8.0.210.0070.00016.92
8.0.200.0000.00616.84
8.0.190.0050.00316.91
8.0.180.0000.00716.98
8.0.170.0050.00216.88
8.0.160.0030.00616.82
8.0.150.0030.00316.84
8.0.140.0080.00416.79
8.0.130.0000.00813.31
8.0.120.0030.00516.74
8.0.110.0040.00416.86
8.0.100.0050.00216.85
8.0.90.0030.00516.79
8.0.80.0080.00716.94
8.0.70.0040.00416.73
8.0.60.0000.00716.94
8.0.50.0000.00816.82
8.0.30.0070.01217.24
8.0.20.0100.00817.40
8.0.10.0040.00416.91
8.0.00.0090.01016.93
7.4.330.0000.00515.08
7.4.320.0000.00716.59
7.4.300.0030.00316.43
7.4.290.0030.00316.56
7.4.280.0000.00716.59
7.4.270.0070.00316.65
7.4.260.0000.00716.48
7.4.250.0070.00016.58
7.4.240.0030.00416.54
7.4.230.0070.00016.50
7.4.220.0130.00416.64
7.4.210.0080.00816.59
7.4.200.0030.00316.65
7.4.160.0100.01016.73
7.4.150.0090.01617.40
7.4.140.0080.01417.86
7.4.130.0180.00716.59
7.4.120.0070.01116.63
7.4.110.0080.00916.53
7.4.100.0090.01216.73
7.4.90.0130.00316.59
7.4.80.0090.00919.39
7.4.70.0100.00616.56
7.4.60.0060.00916.56
7.4.50.0040.00416.57
7.4.40.0110.00616.62
7.4.30.0030.01316.32
7.4.00.0030.01415.04
7.3.330.0000.00713.23
7.3.320.0020.00213.31
7.3.310.0030.00316.34
7.3.300.0090.00016.32
7.3.290.0030.00316.19
7.3.280.0110.00616.32
7.3.270.0140.00317.40
7.3.260.0160.00016.54
7.3.240.0080.00816.21
7.3.230.0130.00316.54
7.3.210.0100.00716.52
7.3.200.0100.00716.52
7.3.190.0100.00616.34
7.3.180.0100.00716.44
7.3.170.0060.01316.42
7.3.160.0120.00416.57
7.2.330.0030.01316.79
7.2.320.0140.00916.84
7.2.310.0100.00716.50
7.2.300.0070.01016.67
7.2.290.0070.01016.73
7.2.60.0060.00317.00
7.2.00.0000.01319.46
7.1.200.0060.00615.74
7.1.100.0030.00917.79
7.1.70.0040.00416.78
7.1.60.0030.01919.48
7.1.50.0100.00616.88
7.1.00.0070.07022.42
7.0.200.0170.00914.63
7.0.60.0030.08320.05
7.0.50.0100.03317.95
7.0.40.0070.06320.27
7.0.30.0270.07720.16
7.0.20.0330.08320.15
7.0.10.0170.08320.08
7.0.00.0070.08320.18
5.6.280.0100.05320.77
5.6.210.0070.03720.61
5.6.200.0130.07318.29
5.6.190.0030.04320.77
5.6.180.0230.06020.50
5.6.170.0270.08020.55
5.6.160.0130.05020.54
5.6.150.0000.08018.21
5.6.140.0030.04318.17
5.6.130.0130.07318.14
5.6.120.0030.08720.99
5.6.110.0000.05721.14
5.6.100.0100.05720.98
5.6.90.0070.04021.02
5.6.80.0030.04720.38
5.5.350.3530.02720.46
5.5.340.0070.07718.09
5.5.330.0130.07320.25
5.5.320.0270.08020.51
5.5.310.0300.05020.37
5.5.300.0030.04018.07
5.5.290.0000.04717.98
5.5.280.0100.08020.77
5.5.270.0030.04320.79
5.5.260.0070.07720.76
5.5.250.0070.09020.55
5.5.240.0070.04720.25

preferences:
75.57 ms | 401 KiB | 5 Q