3v4l.org

run code in 300+ PHP versions simultaneously
<?php $showError = true; class SomeClass { function SomeFunction($foo) { } } $foo[] = 'SomeClass'; $foo[] = 'SomeFunction'; var_dump($foo); if ($showError == true) { $bar[] = 'SomeClass'; $bar[] = &$foo[1]; } $reflection = new ReflectionParameter($foo, 'foo'); if ($showError) { $reflection = new ReflectionParameter($bar, 'foo'); }

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.0070.01316.75
8.3.50.0150.00622.06
8.3.40.0120.00318.84
8.3.30.0080.00619.23
8.3.20.0000.00720.21
8.3.10.0040.00421.90
8.3.00.0080.00019.21
8.2.180.0100.01016.50
8.2.170.0120.00922.96
8.2.160.0100.00322.13
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0100.00018.03
8.2.110.0100.00721.94
8.2.100.0040.00718.03
8.2.90.0000.00817.63
8.2.80.0030.00518.79
8.2.70.0030.00517.50
8.2.60.0090.00017.63
8.2.50.0080.00017.63
8.2.40.0040.00417.75
8.2.30.0000.00719.44
8.2.20.0000.00717.81
8.2.10.0000.00818.06
8.2.00.0000.00717.73
8.1.280.0130.00725.92
8.1.270.0000.00818.95
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00721.85
8.1.230.0070.00420.98
8.1.220.0030.00518.64
8.1.210.0080.00018.77
8.1.200.0000.00917.36
8.1.190.0060.00317.10
8.1.180.0070.00318.10
8.1.170.0040.00417.62
8.1.160.0070.00022.01
8.1.150.0040.00418.86
8.1.140.0000.00719.19
8.1.130.0040.00417.89
8.1.120.0040.00417.44
8.1.110.0050.00317.46
8.1.100.0000.00717.45
8.1.90.0030.00317.41
8.1.80.0000.00717.43
8.1.70.0030.00317.50
8.1.60.0000.00717.67
8.1.50.0040.00417.55
8.1.40.0040.00417.42
8.1.30.0000.00817.64
8.1.20.0080.00017.59
8.1.10.0070.00017.60
8.1.00.0040.00417.45
8.0.300.0080.00020.08
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0000.00717.27
8.0.260.0060.00017.12
8.0.250.0030.00316.93
8.0.240.0000.00616.93
8.0.230.0000.00817.00
8.0.220.0000.00716.89
8.0.210.0050.00216.79
8.0.200.0000.00616.89
8.0.190.0080.00016.92
8.0.180.0000.00716.80
8.0.170.0030.00616.94
8.0.160.0040.00416.96
8.0.150.0040.00416.94
8.0.140.0050.00716.89
8.0.130.0050.00013.37
8.0.120.0040.00416.75
8.0.110.0040.00416.79
8.0.100.0000.00716.84
8.0.90.0000.00716.88
8.0.80.0100.01016.94
8.0.70.0070.00016.69
8.0.60.0040.00417.01
8.0.50.0040.00416.87
8.0.30.0120.01017.02
8.0.20.0110.00817.40
8.0.10.0000.00816.89
8.0.00.0100.00916.90
7.4.330.0000.00615.20
7.4.320.0000.00616.61
7.4.300.0000.00716.58
7.4.290.0000.00716.64
7.4.280.0000.00816.40
7.4.270.0000.00716.43
7.4.260.0050.00216.62
7.4.250.0000.00816.55
7.4.240.0050.00316.58
7.4.230.0030.00316.48
7.4.220.0060.01316.65
7.4.210.0010.01616.58
7.4.200.0030.00416.42
7.4.160.0080.00816.37
7.4.150.0030.01517.40
7.4.140.0130.00517.86
7.4.130.0030.01516.47
7.4.120.0060.01016.61
7.4.110.0140.00616.34
7.4.100.0170.00316.73
7.4.90.0120.00616.45
7.4.80.0030.01319.39
7.4.70.0170.00616.45
7.4.60.0060.01016.57
7.4.50.0000.00716.58
7.4.40.0060.01016.39
7.4.30.0140.00716.41
7.4.00.0070.01015.04
7.3.330.0060.00013.38
7.3.320.0020.00213.26
7.3.310.0040.00416.31
7.3.300.0070.00016.34
7.3.290.0040.00416.18
7.3.280.0100.00716.26
7.3.270.0110.00817.40
7.3.260.0130.00616.30
7.3.250.0120.00616.38
7.3.240.0040.01216.29
7.3.230.0090.01316.46
7.3.210.0110.00616.57
7.3.200.0000.01719.39
7.3.190.0150.00616.39
7.3.180.0150.00616.53
7.3.170.0060.01616.53
7.3.160.0100.00616.48
7.2.330.0080.01616.82
7.2.320.0090.01516.63
7.2.310.0120.00416.56
7.2.300.0100.00716.73
7.2.290.0090.00916.71
7.2.60.0000.01316.76
7.1.200.0070.00715.71
7.1.100.0000.01117.84
7.1.70.0030.00517.04
7.1.60.0120.01219.46
7.1.50.0060.00616.58
7.1.00.0000.08022.57
7.0.200.0170.00715.00
7.0.140.0030.04722.04
7.0.60.0130.07021.66
7.0.50.0100.04717.74
7.0.40.0030.09320.05
7.0.30.0130.04720.24
7.0.20.0170.05320.33
7.0.10.0030.04320.09
7.0.00.0100.06720.32
5.6.280.0070.06721.09
5.6.210.0170.07720.63
5.6.200.0070.08718.24
5.6.190.0130.05720.63
5.6.180.0230.06320.39
5.6.170.0330.07020.42
5.6.160.0230.06720.51
5.6.150.0000.04318.16
5.6.140.0200.06718.28
5.6.130.0030.04718.28
5.6.120.0030.04320.98
5.6.110.0030.04021.04
5.6.100.0070.07320.98
5.6.90.0100.07721.00
5.6.80.0000.04020.50
5.5.350.0230.07720.41
5.5.340.0000.05018.08
5.5.330.0030.08720.27
5.5.320.0330.07320.34
5.5.310.0200.04720.35
5.5.300.0070.07317.95
5.5.290.0070.05017.98
5.5.280.0130.06020.96
5.5.270.0070.06720.88
5.5.260.0070.08320.84
5.5.250.0070.09020.58
5.5.240.0330.04020.15
5.4.450.0570.05319.13
5.4.440.0930.05719.58
5.4.430.0600.04319.16
5.4.420.1100.05719.63
5.4.410.0870.05719.48
5.4.400.0730.06019.29
5.4.390.0230.04718.63
5.4.380.0270.06718.75
5.4.370.0100.08018.72
5.4.360.0170.05718.73
5.4.350.0070.06718.73
5.4.340.0130.06718.59
5.4.320.0200.05718.48
5.4.310.0130.06018.56
5.4.300.0200.05018.77
5.4.290.0170.05718.46
5.4.280.0270.07318.79
5.4.270.0330.05018.84
5.4.260.0170.05318.56
5.4.250.0130.07018.83
5.4.240.0070.06318.74
5.4.230.0130.05718.71
5.4.220.0170.05718.47
5.4.210.0270.04718.76
5.4.200.0270.04016.64
5.4.190.0300.04018.50
5.4.180.0130.05718.77
5.4.170.0200.05718.60
5.4.160.0270.07718.47
5.4.150.0230.05018.77
5.4.140.0200.05016.30
5.4.130.0200.04716.33
5.4.120.0100.05716.34
5.4.110.0170.05016.25
5.4.100.0200.04716.29
5.4.90.0170.05016.24
5.4.80.0270.05016.24
5.4.70.0230.05316.23
5.4.60.0130.05016.18
5.4.50.0130.05016.39
5.4.40.0100.06016.23
5.4.30.0100.06716.25
5.4.20.0170.05316.40
5.4.10.0170.05016.26
5.4.00.0170.04715.79
5.3.290.0130.06014.72
5.3.280.0200.05014.70
5.3.270.0200.05014.80
5.3.260.0200.07014.65
5.3.250.0300.06014.82
5.3.240.0100.06314.66
5.3.230.0230.05014.70
5.3.220.0200.05314.77
5.3.210.0070.06314.60
5.3.200.0130.05714.56
5.3.190.0230.05014.62
5.3.180.0200.05014.76
5.3.170.0130.05314.69
5.3.160.0200.04714.67
5.3.150.0170.06014.74
5.3.140.0230.07014.54
5.3.130.0200.05314.59
5.3.120.0200.05314.75
5.3.110.0230.05014.58
5.3.100.0230.05314.23
5.3.90.0230.05014.02
5.3.80.0170.06014.12
5.3.70.0200.04714.07
5.3.60.0200.04714.20
5.3.50.0170.05014.12
5.3.40.0170.05313.95
5.3.30.0130.05313.99
5.3.20.0270.04313.74
5.3.10.0170.05013.63
5.3.00.0230.04713.66
5.2.170.0200.03711.19
5.2.160.0100.04711.20
5.2.150.0200.05011.37
5.2.140.0200.04011.22
5.2.130.0200.04011.18
5.2.120.0270.03311.23
5.2.110.0200.04011.17
5.2.100.0100.04311.13
5.2.90.0130.04711.21
5.2.80.0100.05011.21
5.2.70.0100.05011.15
5.2.60.0170.04011.17
5.2.50.0230.03311.25
5.2.40.0130.04711.01
5.2.30.0130.04310.99
5.2.20.0100.05710.94
5.2.10.0200.04710.96
5.2.00.0170.03710.75
5.1.60.0130.03010.10
5.1.50.0130.03310.10
5.1.40.0100.0379.98
5.1.30.0170.04310.43
5.1.20.0170.03010.39
5.1.10.0130.03710.19
5.1.00.0130.03710.17
5.0.50.0000.0438.59
5.0.40.0100.0278.54
5.0.30.0100.0438.35
5.0.20.0030.0338.21
5.0.10.0200.0238.21
5.0.00.0100.0408.17
4.4.90.0000.0275.90
4.4.80.0030.0275.92
4.4.70.0100.0175.90
4.4.60.0100.0175.88
4.4.50.0100.0175.90
4.4.40.0070.0335.89
4.4.30.0130.0135.99
4.4.20.0170.0106.07
4.4.10.0100.0175.96
4.4.00.0070.0335.99
4.3.110.0070.0235.82
4.3.100.0000.0275.88
4.3.90.0100.0175.77
4.3.80.0030.0375.87
4.3.70.0070.0235.83
4.3.60.0070.0205.77
4.3.50.0030.0275.80
4.3.40.0100.0305.76
4.3.30.0000.0274.56
4.3.20.0070.0204.53
4.3.10.0100.0174.50
4.3.00.0170.0179.46

preferences:
35.44 ms | 401 KiB | 5 Q