3v4l.org

run code in 300+ PHP versions simultaneously
<?php $showError = false; 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.70.0100.01018.56
8.3.60.0130.00316.72
8.3.50.0130.00922.10
8.3.40.0070.00718.70
8.3.30.0120.00319.04
8.3.20.0080.00020.16
8.3.10.0000.00821.88
8.3.00.0040.00418.92
8.2.180.0130.01016.88
8.2.170.0030.01422.96
8.2.160.0130.00322.09
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00318.05
8.2.110.0040.00721.06
8.2.100.0060.00617.84
8.2.90.0040.00419.10
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0060.00618.07
8.2.40.0040.00418.22
8.2.30.0080.00019.33
8.2.20.0030.00617.76
8.2.10.0050.00318.04
8.2.00.0000.00717.75
8.1.280.0070.00725.92
8.1.270.0040.00418.88
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.20
8.1.230.0080.00322.16
8.1.220.0030.00617.79
8.1.210.0030.00518.77
8.1.200.0000.00917.22
8.1.190.0000.00817.13
8.1.180.0050.00318.10
8.1.170.0060.00318.61
8.1.160.0040.00421.92
8.1.150.0000.00818.82
8.1.140.0060.00319.24
8.1.130.0070.00017.88
8.1.120.0000.00817.53
8.1.110.0000.00717.39
8.1.100.0070.00017.44
8.1.90.0000.00717.54
8.1.80.0070.00017.35
8.1.70.0000.00717.36
8.1.60.0060.00317.50
8.1.50.0050.00317.43
8.1.40.0050.00317.51
8.1.30.0000.00817.67
8.1.20.0000.00717.55
8.1.10.0030.00617.39
8.1.00.0040.00417.39
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0000.00717.34
8.0.260.0030.00317.26
8.0.250.0050.00316.86
8.0.240.0030.00316.96
8.0.230.0060.00316.95
8.0.220.0040.00416.79
8.0.210.0080.00016.92
8.0.200.0030.00316.83
8.0.190.0000.00816.94
8.0.180.0050.00216.94
8.0.170.0040.00416.88
8.0.160.0000.00716.98
8.0.150.0000.00716.71
8.0.140.0000.01016.77
8.0.130.0030.00313.38
8.0.120.0050.00316.89
8.0.110.0050.00316.82
8.0.100.0040.00416.68
8.0.90.0040.00416.97
8.0.80.0100.00616.88
8.0.70.0000.00716.96
8.0.60.0040.00416.80
8.0.50.0070.00016.95
8.0.30.0140.01017.16
8.0.20.0130.00717.40
8.0.10.0070.00016.88
8.0.00.0110.01016.79
7.4.330.0020.00215.15
7.4.320.0030.00316.68
7.4.300.0000.00716.62
7.4.290.0040.00416.51
7.4.280.0040.00416.52
7.4.270.0070.00016.63
7.4.260.0040.00416.50
7.4.250.0050.00316.47
7.4.240.0010.00616.64
7.4.230.0070.00016.71
7.4.220.0160.01016.58
7.4.210.0060.01116.60
7.4.200.0000.00716.36
7.4.160.0060.00916.57
7.4.150.0100.00717.40
7.4.140.0130.00417.86
7.4.130.0070.01016.51
7.4.120.0080.00816.43
7.4.110.0090.00916.61
7.4.100.0100.01016.57
7.4.90.0060.01016.40
7.4.80.0030.01819.39
7.4.70.0170.00416.43
7.4.60.0070.01016.60
7.4.50.0040.00416.59
7.4.40.0090.00616.62
7.4.30.0100.01016.63
7.4.00.0070.01115.16
7.3.330.0000.00713.31
7.3.320.0050.00013.29
7.3.310.0030.00316.14
7.3.300.0000.00616.35
7.3.290.0000.00716.31
7.3.280.0090.01016.35
7.3.270.0120.00617.40
7.3.260.0100.00716.35
7.3.250.0130.00416.55
7.3.240.0100.00716.51
7.3.230.0160.01016.64
7.3.210.0110.00516.44
7.3.200.0070.01019.39
7.3.190.0160.00016.67
7.3.180.0060.01316.44
7.3.170.0090.00916.58
7.3.160.0140.00316.32
7.2.330.0090.01216.66
7.2.320.0100.00716.31
7.2.310.0090.00816.57
7.2.300.0120.00416.57
7.2.290.0120.00616.50
7.2.60.0040.01116.98
7.2.00.0000.00819.39
7.1.200.0030.00915.55
7.1.100.0000.01118.17
7.1.70.0040.00417.04
7.1.60.0060.01919.46
7.1.50.0100.01017.00
7.1.00.0100.07022.41
7.0.200.0030.00715.03
7.0.140.0070.03022.21
7.0.60.0130.06020.01
7.0.50.0100.06017.88
7.0.40.0130.06320.36
7.0.30.0200.04020.21
7.0.20.0300.06720.07
7.0.10.0030.09020.07
7.0.00.0170.07720.16
5.6.280.0030.07321.13
5.6.210.0070.08320.73
5.6.200.0100.08018.16
5.6.190.0070.04320.64
5.6.180.0300.07320.55
5.6.170.0270.06320.55
5.6.160.0070.06720.50
5.6.150.0030.05018.16
5.6.140.0070.08018.27
5.6.130.0030.07018.30
5.6.120.0030.09021.18
5.6.110.0130.07721.00
5.6.100.0130.03720.98
5.6.90.0070.03721.13
5.6.80.0170.07320.40
5.5.350.0270.06320.44
5.5.340.0170.07317.92
5.5.330.0000.05720.45
5.5.320.0100.05720.30
5.5.310.0400.07020.34
5.5.300.0070.05018.07
5.5.290.0000.04318.07
5.5.280.0100.05020.88
5.5.270.0100.08020.79
5.5.260.0070.05720.76
5.5.250.0100.04320.77
5.5.240.0030.07320.16
5.4.450.0630.05319.17
5.4.440.0870.06319.63
5.4.430.0930.05719.45
5.4.420.1000.05019.55
5.4.410.1030.05019.34
5.4.400.1000.05319.22
5.4.390.0230.04718.61
5.4.380.0170.05318.84
5.4.370.0130.05718.56
5.4.360.0100.06318.56
5.4.350.0200.05718.80
5.4.340.0130.05718.61
5.4.320.0230.05018.55
5.4.310.0170.05318.56
5.4.300.0130.06318.82
5.4.290.0130.05318.45
5.4.280.0130.06018.56
5.4.270.0130.05718.78
5.4.260.0200.05318.62
5.4.250.0170.05718.56
5.4.240.0200.05318.74
5.4.230.0170.06018.76
5.4.220.0230.05018.47
5.4.210.0300.04718.55
5.4.200.0130.05716.79
5.4.190.0200.05318.79
5.4.180.0170.05318.75
5.4.170.0230.05018.51
5.4.160.0130.06318.44
5.4.150.0230.04718.53
5.4.140.0170.05316.25
5.4.130.0170.05316.44
5.4.120.0170.05016.21
5.4.110.0130.05316.33
5.4.100.0170.06316.20
5.4.90.0200.05016.29
5.4.80.0200.05016.32
5.4.70.0200.04716.21
5.4.60.0200.05316.14
5.4.50.0270.04016.29
5.4.40.0100.06716.23
5.4.30.0230.04316.41
5.4.20.0130.05716.13
5.4.10.0270.04716.20
5.4.00.0200.05715.68
5.3.290.0100.06314.66
5.3.280.0130.05314.73
5.3.270.0170.05314.70
5.3.260.0270.04714.63
5.3.250.0200.05014.68
5.3.240.0300.06014.64
5.3.230.0170.05314.59
5.3.220.0230.04714.63
5.3.210.0200.07314.56
5.3.200.0230.05714.77
5.3.190.0270.04714.75
5.3.180.0200.05014.61
5.3.170.0200.05014.69
5.3.160.0170.05314.59
5.3.150.0130.05314.61
5.3.140.0270.05714.73
5.3.130.0100.08014.59
5.3.120.0200.05014.55
5.3.110.0130.05714.77
5.3.100.0230.05014.07
5.3.90.0300.04014.13
5.3.80.0270.04714.14
5.3.70.0170.05014.02
5.3.60.0230.04714.00
5.3.50.0100.05713.97
5.3.40.0170.05313.93
5.3.30.0230.04314.04
5.3.20.0200.05313.80
5.3.10.0170.04713.78
5.3.00.0130.05313.75
5.2.170.0230.03711.21
5.2.160.0100.04011.26
5.2.150.0200.04011.25
5.2.140.0100.04711.37
5.2.130.0100.04011.18
5.2.120.0000.05011.16
5.2.110.0130.04711.12
5.2.100.0200.05011.16
5.2.90.0030.06711.23
5.2.80.0170.04011.30
5.2.70.0130.04711.09
5.2.60.0100.04711.07
5.2.50.0100.04711.12
5.2.40.0170.05311.06
5.2.30.0100.04311.04
5.2.20.0070.04711.16
5.2.10.0130.04710.87
5.2.00.0100.04310.76
5.1.60.0130.03310.10
5.1.50.0070.0379.98
5.1.40.0130.03310.01
5.1.30.0170.03310.38
5.1.20.0270.03010.57
5.1.10.0070.04010.27
5.1.00.0200.04010.26
5.0.50.0130.0378.63
5.0.40.0070.0378.41
5.0.30.0130.0538.22
5.0.20.0100.0308.37
5.0.10.0170.0238.20
5.0.00.0030.0478.25
4.4.90.0070.0235.93
4.4.80.0030.0236.01
4.4.70.0130.0175.89
4.4.60.0030.0435.96
4.4.50.0000.0305.97
4.4.40.0100.0335.93
4.4.30.0000.0275.96
4.4.20.0070.0235.98
4.4.10.0070.0206.05
4.4.00.0170.0236.02
4.3.110.0130.0175.82
4.3.100.0100.0205.85
4.3.90.0030.0235.79
4.3.80.0100.0305.83
4.3.70.0000.0275.80
4.3.60.0030.0235.87
4.3.50.0170.0105.83
4.3.40.0030.0375.79
4.3.30.0070.0234.56
4.3.20.0030.0234.54
4.3.10.0000.0274.54
4.3.00.0070.0239.46

preferences:
46.98 ms | 401 KiB | 5 Q