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(); $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.49
8.5.20.0090.01016.80
8.5.10.0030.00520.12
8.5.00.0100.01220.07
8.4.180.0150.00819.65
8.4.170.0150.00623.88
8.4.160.0130.00723.95
8.4.150.0080.00416.84
8.4.140.0120.01017.69
8.4.130.0110.00718.65
8.4.120.0140.00522.23
8.4.110.0060.00418.80
8.4.100.0140.00618.30
8.4.90.0120.00720.55
8.4.80.0130.00620.26
8.4.70.0150.00818.27
8.4.60.0060.00318.95
8.4.50.0090.00318.57
8.4.40.0050.00317.50
8.4.30.0150.00617.75
8.4.20.0130.00617.90
8.4.10.0160.00017.78
8.3.300.0070.01220.79
8.3.290.0060.00320.86
8.3.280.0160.01018.45
8.3.270.0130.00716.79
8.3.260.0120.00716.74
8.3.250.0120.00618.75
8.3.240.0110.00817.00
8.3.230.0050.00516.70
8.3.220.0120.00718.98
8.3.210.0100.01116.54
8.3.200.0060.00316.60
8.3.190.0110.01016.99
8.3.180.0100.00917.09
8.3.170.0030.01418.83
8.3.160.0110.00716.85
8.3.150.0120.00618.91
8.3.140.0140.00416.66
8.3.130.0060.00318.59
8.3.120.0040.01220.48
8.3.110.0060.00320.94
8.3.100.0060.00316.63
8.3.90.0080.00026.77
8.3.80.0110.00018.40
8.3.70.0080.01216.63
8.3.60.0070.00718.39
8.3.50.0090.01122.05
8.3.40.0040.01118.86
8.3.30.0100.00319.08
8.3.20.0030.01020.09
8.3.10.0060.00621.77
8.3.00.0040.00419.67
8.2.300.0090.01122.00
8.2.290.0120.00720.37
8.2.280.0130.00718.73
8.2.270.0190.00017.50
8.2.260.0100.00716.93
8.2.250.0070.00316.78
8.2.240.0070.01118.91
8.2.230.0030.00622.58
8.2.220.0040.01224.06
8.2.210.0150.00426.77
8.2.200.0130.00018.28
8.2.190.0140.00316.88
8.2.180.0100.00725.92
8.2.170.0120.00918.78
8.2.160.0180.00422.96
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0110.00726.16
8.2.120.0000.00820.79
8.2.110.0060.00320.58
8.2.100.0040.00819.39
8.2.90.0080.00019.08
8.2.80.0040.00419.46
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0040.00418.05
8.2.20.0000.00917.50
8.2.10.0040.00417.88
8.2.00.0100.00017.45
8.1.340.0120.00917.64
8.1.330.0090.00921.98
8.1.320.0140.00516.12
8.1.310.0180.00016.46
8.1.300.0060.00318.57
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0040.00422.15
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.76
8.1.230.0040.00719.11
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.53
8.1.180.0000.00918.66
8.1.170.0080.00018.65
8.1.160.0040.00422.11
8.1.150.0060.00318.87
8.1.140.0070.00017.26
8.1.130.0070.00017.82
8.1.120.0070.00017.41
8.1.110.0000.00817.34
8.1.100.0000.00717.28
8.1.90.0000.00717.30
8.1.80.0020.00517.41
8.1.70.0040.00417.38
8.1.60.0040.00417.52
8.1.50.0030.00517.52
8.1.40.0000.00717.49
8.1.30.0000.00917.61
8.1.20.0000.00817.50
8.1.10.0040.00417.55
8.1.00.0050.00217.43
8.0.300.0040.00418.77
8.0.290.0000.00716.93
8.0.280.0030.00318.32
8.0.270.0030.00317.07
8.0.260.0000.00617.16
8.0.250.0040.00417.02
8.0.240.0070.00016.91
8.0.230.0070.00316.96
8.0.220.0000.00716.84
8.0.210.0030.00616.77
8.0.200.0040.00416.88
8.0.190.0040.00416.98
8.0.180.0040.00416.94
8.0.170.0000.00816.90
8.0.160.0050.00216.82
8.0.150.0040.00416.88
8.0.140.0050.00216.75
8.0.130.0030.00313.29
8.0.120.0000.00716.76
8.0.110.0000.00716.89
8.0.100.0000.00716.88
8.0.90.0000.00816.79
8.0.80.0100.00616.81
8.0.70.0040.00416.93
8.0.60.0020.00516.73
8.0.50.0050.00316.74
8.0.30.0090.00917.09
8.0.20.0110.00817.40
8.0.10.0070.00016.84
8.0.00.0160.00316.62
7.4.330.0000.00515.07
7.4.320.0030.00316.46
7.4.300.0000.00616.46
7.4.290.0000.00716.55
7.4.280.0060.00316.44
7.4.270.0030.00316.55
7.4.260.0000.00716.42
7.4.250.0030.00516.41
7.4.240.0020.00516.56
7.4.230.0030.00516.47
7.4.220.0140.00316.60
7.4.210.0130.00716.58
7.4.200.0030.00316.48
7.4.160.0080.00816.50
7.4.150.0070.01117.40
7.4.140.0120.01117.86
7.4.130.0090.00816.47
7.4.120.0090.00916.44
7.4.110.0090.00916.36
7.4.100.0070.01116.39
7.4.90.0090.00816.33
7.4.80.0100.00719.39
7.4.70.0070.01616.25
7.4.60.0120.00916.45
7.4.50.0000.00416.51
7.4.40.0060.01016.59
7.4.30.0100.00616.57
7.4.00.0080.00415.07
7.3.330.0000.00613.19
7.3.320.0020.00213.07
7.3.310.0030.00316.27
7.3.300.0030.00316.25
7.3.290.0060.00816.23
7.3.280.0100.00616.21
7.3.270.0090.00917.40
7.3.260.0110.00716.59
7.3.250.0120.00816.25
7.3.240.0120.00616.35
7.3.230.0090.00916.39
7.3.210.0030.01316.40
7.3.200.0070.01019.39
7.3.190.0140.00316.20
7.3.180.0070.00716.22
7.3.170.0070.01016.43
7.3.160.0090.00616.33
7.2.330.0030.01816.42
7.2.320.0070.01016.52
7.2.310.0070.01016.42
7.2.300.0170.00016.66
7.2.290.0070.01316.30
7.2.00.0040.00719.05
7.1.100.0000.01118.03
7.1.70.0030.00616.64
7.1.60.0070.01719.19
7.1.50.0100.01316.82
7.1.00.0030.07722.57
7.0.200.0080.00414.47
7.0.140.0070.06021.95
7.0.110.0100.03719.91
7.0.100.0030.08720.00
7.0.90.0130.06719.98
7.0.80.0030.03719.91
7.0.70.0130.07020.05
7.0.60.0070.03719.63
7.0.50.0030.09019.88
7.0.40.0030.04719.85
7.0.30.0030.07019.85
7.0.20.0070.04319.86
7.0.10.0100.04719.88
7.0.00.0000.07719.64
5.6.280.0030.07320.77
5.6.260.0000.04720.69
5.6.250.0130.07720.64
5.6.240.0100.07020.65
5.6.230.0200.02320.72
5.6.220.0030.03720.55
5.6.210.0030.03720.58
5.6.200.0070.08020.86
5.6.190.0030.04020.66
5.6.180.0130.04320.86
5.6.170.0070.05020.55
5.6.160.0100.03320.57
5.6.150.0070.04020.72
5.6.140.0030.07320.55
5.6.130.0100.06020.55
5.6.120.0070.04720.66
5.6.110.0070.05720.64
5.6.100.0070.08320.55
5.6.90.0030.05320.60
5.6.80.0100.03320.09
5.6.70.0030.04020.01
5.6.60.0030.04320.19
5.6.50.0070.03720.00
5.6.40.0070.03719.92
5.6.30.0070.04020.00
5.6.20.0070.03719.98
5.6.10.0030.06719.82
5.6.00.0070.03719.98
5.5.380.0170.07017.57
5.5.370.0000.05017.60
5.5.360.0070.08017.50
5.5.350.0070.06717.51
5.5.340.0070.03318.13
5.5.330.0000.04317.96
5.5.320.0030.06318.26
5.5.310.0030.04018.12
5.5.300.0130.08018.10
5.5.290.0100.05017.93
5.5.280.0070.06717.91
5.5.270.0100.07318.11
5.5.260.0000.07018.13
5.5.250.0000.04317.77
5.5.240.0030.03717.35
5.5.230.0030.06717.31
5.5.220.0000.04017.60
5.5.210.0130.03017.47
5.5.200.0000.05317.29
5.5.190.0030.04017.44
5.5.180.0030.04017.46
5.5.160.0030.06317.45
5.5.150.0100.03317.57
5.5.140.0100.02717.18
5.5.130.0100.03717.45
5.5.120.0100.05717.45
5.5.110.0070.03717.17
5.5.100.0100.07017.18
5.5.90.0070.07317.36
5.5.80.0070.04017.48
5.5.70.0070.05717.34
5.5.60.0230.06017.20
5.5.50.0000.05717.49
5.5.40.0100.06717.33
5.5.30.0100.06017.14
5.5.20.0070.04717.15
5.5.10.0070.04317.35
5.5.00.0030.04017.30
5.4.450.0000.04319.42
5.4.440.0170.08019.31
5.4.430.0070.04019.30
5.4.420.0100.07319.31
5.4.410.0030.08319.21
5.4.400.0000.04019.21
5.4.390.0070.03718.95
5.4.380.0100.06719.24
5.4.370.0000.04018.99
5.4.360.0100.05018.98
5.4.350.0030.03719.19
5.4.340.0000.04319.23
5.4.320.0000.04318.95
5.4.310.0070.03719.01
5.4.300.0030.04318.95
5.4.290.0030.03719.03
5.4.280.0070.04019.34
5.4.270.0070.03719.33
5.4.260.0070.04019.09
5.4.250.0100.07018.99
5.4.240.0030.07319.05
5.4.230.0070.03319.22
5.4.220.0070.07319.32
5.4.210.0030.06019.13
5.4.200.0130.07019.00
5.4.190.0030.06319.23
5.4.180.0030.04019.22
5.4.170.0070.03718.94
5.4.160.0070.06019.00
5.4.150.0030.04318.99
5.4.140.0070.03716.61
5.4.130.0000.04016.67
5.4.120.0100.03016.44
5.4.110.0070.03316.41
5.4.100.0000.04316.71
5.4.90.0000.04316.56
5.4.80.0100.03316.54
5.4.70.0000.04016.40
5.4.60.0070.02716.64
5.4.50.0030.03016.33
5.4.40.0000.03316.45
5.4.30.0000.03316.22
5.4.20.0170.01716.37
5.4.10.0000.03316.52
5.4.00.0000.03316.08
5.3.290.0030.04314.70
5.3.280.0100.05714.63
5.3.270.0030.04314.70
5.3.260.0030.04314.77
5.3.250.0100.03314.63
5.3.240.0030.04014.74
5.3.230.0070.03714.59
5.3.220.0030.03714.57
5.3.210.0030.04314.70
5.3.200.0070.03314.59
5.3.190.0030.03014.80
5.3.180.0000.03314.53
5.3.170.0030.03714.70
5.3.160.0030.03014.70
5.3.150.0030.03014.65
5.3.140.0030.03714.68
5.3.130.0070.03314.70
5.3.120.0030.03014.58
5.3.110.0000.03714.63
5.3.100.0000.03714.02
5.3.90.0070.03314.10
5.3.80.0070.02714.04
5.3.70.0030.03014.01
5.3.60.0030.03014.15
5.3.50.0000.03313.95
5.3.40.0000.03313.96
5.3.30.0000.03013.87
5.3.20.0070.02713.55
5.3.10.0000.03013.78
5.3.00.0070.02713.77
5.2.170.0000.02712.09
5.2.160.0000.02712.09
5.2.150.0000.02712.09
5.2.140.0000.03012.09
5.2.130.0100.02712.09
5.2.120.0000.02712.09
5.2.110.0000.02712.09
5.2.100.0030.02312.09
5.2.90.0000.02712.09
5.2.80.0030.02712.09
5.2.70.0000.02712.09
5.2.60.0030.02312.09
5.2.50.0030.02312.09
5.2.40.0000.02712.09
5.2.30.0070.02012.09
5.2.20.0000.02712.09
5.2.10.0000.02312.09
5.2.00.0000.02312.09
5.1.60.0030.02012.09
5.1.50.0000.02312.09
5.1.40.0000.02312.09
5.1.30.0000.02312.09
5.1.20.0030.02012.09
5.1.10.0000.02312.09
5.1.00.0030.02312.09
5.0.50.0000.01712.09
5.0.40.0000.01712.09
5.0.30.0000.03012.09
5.0.20.0030.03012.09
5.0.10.0000.04712.09
5.0.00.0030.06312.09
4.4.90.0000.01312.09
4.4.80.0030.01012.09
4.4.70.0030.01012.09
4.4.60.0030.01012.09
4.4.50.0000.01312.09
4.4.40.0000.02012.09
4.4.30.0030.01012.09
4.4.20.0000.01312.09
4.4.10.0000.01312.09
4.4.00.0000.02312.09
4.3.110.0000.01312.09
4.3.100.0030.01012.09
4.3.90.0000.02012.09
4.3.80.0000.02312.09
4.3.70.0000.03012.09
4.3.60.0030.02712.09
4.3.50.0000.01312.09
4.3.40.0000.02012.09
4.3.30.0000.01712.09
4.3.20.0000.01712.09
4.3.10.0000.02012.09
4.3.00.0000.02312.09

preferences:
61.81 ms | 2222 KiB | 5 Q