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->getDefaultValue());

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.0120.00316.50
8.3.50.0130.00521.98
8.3.40.0040.01118.92
8.3.30.0070.00718.71
8.3.20.0040.00420.16
8.3.10.0040.00423.71
8.3.00.0060.00319.38
8.2.180.0120.00918.54
8.2.170.0110.00422.96
8.2.160.0100.00720.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0110.00017.50
8.2.120.0050.00226.35
8.2.110.0060.00320.54
8.2.100.0040.01117.89
8.2.90.0000.00919.28
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0070.00418.00
8.2.50.0050.00318.07
8.2.40.0000.00919.46
8.2.30.0000.00720.50
8.2.20.0040.00417.75
8.2.10.0000.00718.05
8.2.00.0030.00518.10
8.1.280.0070.00725.92
8.1.270.0050.00322.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00923.83
8.1.230.0080.00317.79
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0000.00721.92
8.1.150.0040.00418.70
8.1.140.0030.00519.52
8.1.130.0000.00717.64
8.1.120.0040.00417.38
8.1.110.0050.00317.34
8.1.100.0020.00517.38
8.1.90.0000.00817.38
8.1.80.0100.00017.39
8.1.70.0070.00017.27
8.1.60.0030.00617.49
8.1.50.0040.00417.55
8.1.40.0050.00317.49
8.1.30.0030.00617.58
8.1.20.0060.00317.55
8.1.10.0040.00417.52
8.1.00.0000.00817.58
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0030.00317.26
8.0.260.0000.00617.16
8.0.250.0050.00216.99
8.0.240.0050.00217.01
8.0.230.0000.00916.92
8.0.220.0050.00316.86
8.0.210.0000.00716.78
8.0.200.0000.00617.00
8.0.190.0040.00416.85
8.0.180.0050.00316.91
8.0.170.0040.00416.87
8.0.160.0000.00816.93
8.0.150.0000.00816.80
8.0.140.0030.00616.74
8.0.130.0080.00013.32
8.0.120.0030.00516.83
8.0.110.0080.00016.81
8.0.100.0040.00416.68
8.0.90.0000.00716.72
8.0.80.0040.01116.78
8.0.70.0040.00416.91
8.0.60.0040.00416.82
8.0.50.0070.00016.95
8.0.30.0110.00916.96
8.0.20.0110.00917.40
8.0.10.0050.00316.97
8.0.00.0050.01416.83
7.4.330.0030.00315.08
7.4.320.0060.00016.54
7.4.300.0030.00316.52
7.4.290.0050.00316.51
7.4.280.0040.00416.39
7.4.270.0040.00416.58
7.4.260.0000.00716.45
7.4.250.0000.00716.55
7.4.240.0020.00516.56
7.4.230.0030.00316.25
7.4.220.0140.00416.54
7.4.210.0040.01116.56
7.4.200.0000.00716.35
7.4.160.0110.00516.39
7.4.150.0140.00317.40
7.4.140.0170.00517.86
7.4.130.0150.00116.42
7.4.120.0120.00516.51
7.4.110.0030.01316.55
7.4.100.0110.00716.69
7.4.90.0060.01516.45
7.4.80.0120.00919.39
7.4.70.0140.00916.60
7.4.60.0100.00616.48
7.4.50.0000.00516.45
7.4.40.0150.00316.53
7.4.30.0100.00716.45
7.4.00.0090.00715.08
7.3.330.0060.00013.37
7.3.320.0020.00213.26
7.3.310.0000.00716.20
7.3.300.0070.00016.26
7.3.290.0000.00716.18
7.3.280.0140.00216.31
7.3.270.0070.01017.40
7.3.260.0170.00016.44
7.3.250.0110.00716.45
7.3.240.0080.00816.41
7.3.230.0060.01616.42
7.3.210.0060.01516.32
7.3.200.0090.00616.34
7.3.190.0030.01316.25
7.3.180.0120.00616.37
7.3.170.0030.01316.32
7.3.160.0080.00816.38
7.3.120.0130.00314.97
7.3.110.0090.00914.71
7.3.100.0060.00914.86
7.3.90.0040.00814.80
7.3.80.0030.01314.86
7.3.70.0050.00514.96
7.3.60.0000.01214.64
7.3.50.0110.00414.52
7.3.40.0040.01114.81
7.3.30.0100.00314.82
7.3.20.0030.01216.65
7.3.10.0060.00916.47
7.3.00.0030.01416.54
7.2.330.0110.00716.66
7.2.320.0210.00316.78
7.2.310.0110.00416.67
7.2.300.0100.00716.68
7.2.290.0090.00916.35
7.2.250.0070.01315.02
7.2.240.0070.01414.84
7.2.230.0070.00715.16
7.2.220.0000.01115.17
7.2.210.0040.00715.00
7.2.200.0000.01415.16
7.2.190.0060.01015.04
7.2.180.0100.00614.88
7.2.170.0060.01015.10
7.2.60.0060.00917.09
7.2.00.0040.01419.12
7.1.330.0070.00715.73
7.1.320.0040.01215.74
7.1.310.0060.00615.86
7.1.300.0060.00915.42
7.1.290.0030.00615.67
7.1.280.0070.00715.73
7.1.270.0050.00515.93
7.1.260.0140.00015.41
7.1.200.0070.00415.71
7.1.100.0000.01218.31
7.1.70.0030.00617.06
7.1.60.0150.00319.48
7.1.50.0100.01316.77
7.1.00.0030.07722.33
7.0.200.0420.00814.67
7.0.60.0200.06719.96
7.0.50.0130.07017.81
7.0.40.0070.05320.11
7.0.30.0230.04020.08
7.0.20.0170.08720.12
7.0.10.0130.08720.22
7.0.00.0030.09020.05
5.6.280.0070.04721.02
5.6.210.0000.04320.50
5.6.200.0130.08018.29
5.6.190.0070.08720.58
5.6.180.0300.06020.46
5.6.170.0270.05320.57
5.6.160.0130.07020.52
5.6.150.0000.07718.17
5.6.140.0070.03718.16
5.6.130.0030.08318.15
5.6.120.0070.08021.03
5.6.110.0000.04321.00
5.6.100.0170.07021.01
5.6.90.0070.08321.10
5.6.80.0200.06720.53
5.5.350.4470.04020.40
5.5.340.0070.08017.95
5.5.330.0230.05320.20
5.5.320.0330.07320.20
5.5.310.0230.05020.32
5.5.300.0000.04017.96
5.5.290.0000.04317.95
5.5.280.0030.08320.89
5.5.270.0100.07320.63
5.5.260.0030.05020.64
5.5.250.0070.08720.54
5.5.240.0200.02720.19

preferences:
37.66 ms | 401 KiB | 5 Q