3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myGlobalFunction() { } class MyClass { public static function myStaticMethod() { } } $r1 = new ReflectionFunction('myGlobalFunction'); $c1 = $r1->getClosure(); $r2 = new ReflectionMethod('MyClass', 'myStaticMethod'); $c2 = $r2->getClosure(new MyClass()); $c1->bindTo(new stdClass()); $c2->bindTo(new stdClass());

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.5.30.0080.01017.50
8.5.20.0110.00716.70
8.5.10.0040.00420.05
8.5.00.0100.01120.21
8.4.180.0140.00819.83
8.4.170.0110.01323.77
8.4.160.0130.01023.88
8.4.150.0090.00316.94
8.4.140.0130.00917.55
8.4.130.0130.00717.80
8.4.120.0080.01120.54
8.4.110.0050.00718.74
8.4.100.0120.01017.93
8.4.90.0120.00520.49
8.4.80.0160.00418.97
8.4.70.0040.00418.96
8.4.60.0060.00320.57
8.4.50.0100.01018.43
8.4.40.0030.01017.76
8.4.30.0130.00317.69
8.4.20.0170.00317.86
8.4.10.0070.01417.64
8.3.300.0050.00422.57
8.3.290.0150.00620.70
8.3.280.0190.00618.38
8.3.270.0110.01016.80
8.3.260.0110.00716.52
8.3.250.0130.00518.88
8.3.240.0110.00816.54
8.3.230.0090.01016.47
8.3.220.0050.00320.72
8.3.210.0040.00416.69
8.3.200.0100.01016.45
8.3.190.0130.00716.85
8.3.180.0140.00618.72
8.3.170.0140.00416.93
8.3.160.0100.00717.06
8.3.150.0130.00716.45
8.3.140.0030.00716.80
8.3.130.0110.00716.62
8.3.120.0040.00418.66
8.3.110.0060.00320.94
8.3.100.0000.00824.06
8.3.90.0090.00026.77
8.3.80.0110.00018.30
8.3.70.0150.00316.46
8.3.60.0150.00018.30
8.3.50.0050.01321.92
8.3.40.0150.00018.59
8.3.30.0090.00618.89
8.3.20.0040.00420.31
8.3.10.0040.00421.76
8.3.00.0000.00819.43
8.2.300.0120.00820.12
8.2.290.0090.01016.84
8.2.280.0070.00118.43
8.2.270.0070.01118.30
8.2.260.0120.00617.28
8.2.250.0040.00416.88
8.2.240.0110.00418.97
8.2.230.0080.00022.58
8.2.220.0050.00337.54
8.2.210.0040.00426.77
8.2.200.0100.00017.00
8.2.190.0120.00918.54
8.2.180.0100.00718.54
8.2.170.0110.00722.96
8.2.160.0030.01019.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.01226.16
8.2.120.0080.00020.64
8.2.110.0040.00420.36
8.2.100.0080.00319.40
8.2.90.0000.00719.22
8.2.80.0050.00219.17
8.2.70.0060.00317.25
8.2.60.0060.00317.93
8.2.50.0000.00918.07
8.2.40.0040.00418.16
8.2.30.0070.00018.02
8.2.20.0000.00817.68
8.2.10.0000.00718.03
8.2.00.0040.00717.61
8.1.340.0130.00821.62
8.1.330.0110.00816.29
8.1.320.0100.01017.94
8.1.310.0000.00816.44
8.1.300.0040.00416.28
8.1.290.0110.00018.88
8.1.280.0120.00925.92
8.1.270.0080.00022.24
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00023.91
8.1.230.0080.00319.01
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0040.00717.35
8.1.190.0080.00017.41
8.1.180.0070.00018.57
8.1.170.0000.00818.50
8.1.160.0070.00022.05
8.1.150.0000.00818.84
8.1.140.0000.00717.39
8.1.130.0070.00017.77
8.1.120.0000.00817.43
8.1.110.0040.00417.25
8.1.100.0070.00017.28
8.1.90.0000.00717.28
8.1.80.0040.00417.37
8.1.70.0050.00317.40
8.1.60.0080.00017.54
8.1.50.0000.00817.36
8.1.40.0050.00317.33
8.1.30.0000.00817.65
8.1.20.0000.00817.45
8.1.10.0030.00517.49
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0000.00717.18
8.0.280.0000.00718.29
8.0.270.0000.00717.07
8.0.260.0070.00017.16
8.0.250.0030.00316.97
8.0.240.0030.00316.85
8.0.230.0030.00716.82
8.0.220.0030.00316.93
8.0.210.0070.00316.92
8.0.200.0040.00416.95
8.0.190.0030.00316.96
8.0.180.0070.00016.93
8.0.170.0070.00016.89
8.0.160.0020.00516.83
8.0.150.0070.00016.96
8.0.140.0000.00816.81
8.0.130.0050.00013.39
8.0.120.0050.00316.88
8.0.110.0000.00716.73
8.0.100.0040.00416.77
8.0.90.0070.00016.68
8.0.80.0120.00916.79
8.0.70.0080.00016.84
8.0.60.0000.00716.94
8.0.50.0000.00816.80
8.0.30.0090.01116.89
8.0.20.0060.01217.40
8.0.10.0030.00517.07
8.0.00.0140.00416.69
7.4.330.0050.00015.06
7.4.320.0030.00316.35
7.4.300.0030.00316.54
7.4.290.0060.00016.53
7.4.280.0070.00016.41
7.4.270.0030.00316.55
7.4.260.0070.00316.44
7.4.250.0070.00016.32
7.4.240.0020.00516.41
7.4.230.0030.00316.63
7.4.220.0100.01716.55
7.4.210.0170.00316.53
7.4.200.0000.00716.34
7.4.160.0090.00616.33
7.4.150.0150.00417.40
7.4.140.0090.00817.86
7.4.130.0070.01016.54
7.4.120.0110.00716.55
7.4.110.0160.00616.45
7.4.100.0040.01316.50
7.4.90.0070.01016.48
7.4.80.0060.01019.39
7.4.70.0060.01216.46
7.4.60.0060.01116.39
7.4.50.0000.00516.59
7.4.40.0040.01216.52
7.4.30.0100.00716.45
7.4.00.0040.01214.62
7.3.330.0070.00013.32
7.3.320.0050.00013.23
7.3.310.0000.00716.30
7.3.300.0070.00016.21
7.3.290.0090.00516.25
7.3.280.0070.01116.29
7.3.270.0070.01017.40
7.3.260.0030.01416.31
7.3.250.0140.00616.19
7.3.240.0060.01316.15
7.3.230.0100.00716.56
7.3.210.0030.01416.27
7.3.200.0110.00719.39
7.3.190.0070.01016.19
7.3.180.0120.00216.40
7.3.170.0130.00616.54
7.3.160.0060.00916.36
7.2.330.0140.00716.61
7.2.320.0090.00916.28
7.2.310.0050.01316.73
7.2.300.0100.00516.52
7.2.290.0090.01316.38
7.2.60.0140.00016.76
7.2.00.0060.00619.16
7.1.200.0080.00415.62
7.1.100.0040.00717.98
7.1.70.0000.01017.00
7.1.60.0000.01519.19
7.1.50.0140.01016.75
7.1.00.0070.07322.44
7.0.200.0070.01014.66
7.0.140.0030.04722.08
7.0.60.0130.07719.84
7.0.50.0070.07317.83
7.0.40.0070.08320.14
7.0.30.0230.05320.11
7.0.20.0200.04320.19
7.0.10.0070.08320.25
7.0.00.0070.05020.09
5.6.280.0100.06320.91
5.6.210.0030.08720.48
5.6.200.0100.07718.16
5.6.190.0130.04720.49
5.6.180.0270.07720.63
5.6.170.0200.08320.55
5.6.160.0070.05720.52
5.6.150.0000.04318.21
5.6.140.0070.08318.21
5.6.130.0030.05718.14
5.6.120.0030.06721.00
5.6.110.0070.08320.89
5.6.100.0130.07321.11
5.6.90.0130.04321.13
5.6.80.0070.06720.29
5.5.350.0230.08020.36
5.5.340.0030.04717.99
5.5.330.0100.07020.29
5.5.320.0370.07720.28
5.5.310.0270.08020.37
5.5.300.0070.04317.92
5.5.290.0030.07317.92
5.5.280.0000.06020.80
5.5.270.0100.07020.73
5.5.260.0070.08020.79
5.5.250.0000.05320.46
5.5.240.0130.06020.22
5.4.450.0270.06319.59
5.4.440.1030.04019.28
5.4.430.0100.05719.39
5.4.420.0170.04719.51
5.4.410.0070.05319.52
5.4.400.0130.04718.92
5.4.390.0100.05019.12
5.4.380.0230.05018.59
5.4.370.0100.06018.69
5.4.360.0170.05018.85
5.4.350.0070.03313.78
5.4.340.0070.03713.94
5.4.320.0130.04714.27
5.4.310.0030.04314.31
5.4.300.0030.04014.35
5.4.290.0030.04314.27
5.4.280.0100.03314.32
5.4.270.0100.04014.22
5.4.260.0030.04314.05
5.4.250.0000.04714.09
5.4.240.0030.04014.13
5.4.230.0130.03314.16
5.4.220.0070.03714.09
5.4.210.0070.03314.23
5.4.200.0070.03714.09
5.4.190.0030.04714.08
5.4.180.0100.03314.09
5.4.170.0070.03314.23
5.4.160.0070.03714.14
5.4.150.0070.03714.31
5.4.140.0100.03313.81
5.4.130.0070.04313.71
5.4.120.0300.02013.72
5.4.110.0000.04013.67
5.4.100.0130.03713.66
5.4.90.0100.03713.93
5.4.80.0000.04713.77
5.4.70.0030.04013.66
5.4.60.0030.03713.76
5.4.50.0130.03313.83
5.4.40.0030.04313.76
5.4.30.0070.03313.66
5.4.20.0000.04313.74
5.4.10.0070.03713.75
5.4.00.0070.03313.23
5.3.290.0070.04014.69
5.3.280.0070.03714.54
5.3.270.0070.04014.75
5.3.260.0070.04314.55
5.3.250.0070.03714.55
5.3.240.0130.03314.54
5.3.230.0100.04014.63
5.3.220.0070.03714.48
5.3.210.0070.04014.57
5.3.200.0070.03714.60
5.3.190.0030.05014.48
5.3.180.0000.04314.70
5.3.170.0030.04314.51
5.3.160.0070.03714.50
5.3.150.0030.04014.45
5.3.140.0100.03314.70
5.3.130.0100.04314.69
5.3.120.0100.05014.69
5.3.110.0070.04314.68
5.3.100.0070.03713.99
5.3.90.0000.04313.94
5.3.80.0070.03714.01
5.3.70.0000.04314.10
5.3.60.0070.03714.06
5.3.50.0100.03714.07
5.3.40.0070.03713.86
5.3.30.0200.02713.98
5.3.20.0100.03713.76
5.3.10.0070.03713.71
5.3.00.0030.04313.72
5.2.170.0030.03311.13
5.2.160.0030.03311.29
5.2.150.0030.04011.14
5.2.140.0000.04011.14
5.2.130.0030.04011.11
5.2.120.0030.03311.17
5.2.110.0070.03011.04
5.2.100.0100.03310.98
5.2.90.0030.03711.25
5.2.80.0100.03311.17
5.2.70.0100.03710.99
5.2.60.0070.03311.07
5.2.50.0070.03011.09
5.2.40.0030.03010.99
5.2.30.0070.03011.00
5.2.20.0070.02711.00
5.2.10.0100.02310.86
5.2.00.0000.03310.67
5.1.60.0070.0239.89
5.1.50.0030.0309.93
5.1.40.0100.0209.96
5.1.30.0070.02710.27
5.1.20.0030.03010.25
5.1.10.0070.03010.04
5.1.00.0030.02710.00
5.0.50.0070.0178.70
5.0.40.0100.0138.34
5.0.30.0070.0338.22
5.0.20.0000.0238.09
5.0.10.0030.0278.09
5.0.00.0030.0308.09
4.4.90.0070.0175.86
4.4.80.0100.0105.85
4.4.70.0000.0275.81
4.4.60.0000.0205.82
4.4.50.0030.0175.86
4.4.40.0000.0305.95
4.4.30.0000.0205.95
4.4.20.0000.0205.91
4.4.10.0070.0205.89
4.4.00.0070.0205.93
4.3.110.0000.0175.77
4.3.100.0000.0175.79
4.3.90.0000.0175.79
4.3.80.0030.0275.81
4.3.70.0000.0205.80
4.3.60.0000.0235.77
4.3.50.0030.0175.76
4.3.40.0000.0275.69
4.3.30.0070.0134.48
4.3.20.0030.0174.53
4.3.10.0000.0174.46
4.3.00.0030.0206.71

preferences:
49.01 ms | 2053 KiB | 5 Q