3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myGlobalFunction() { } class MyClass { public static function myStaticMethod() { echo "I don't even"; } } $r1 = new ReflectionFunction('myGlobalFunction'); $c1 = $r1->getClosure(); $r2 = new ReflectionMethod('MyClass', 'myStaticMethod'); $c2 = $r2->getClosure(null); $c1->bindTo(new stdClass()); $r3 = new ReflectionFunction($c2); if ($r3->getClosureThis()) { $f3 = $c2->bindTo(new stdClass()); } else{ $f3 = $c2->bindTo(null); } $c1(); $f3();

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.0040.01118.06
8.3.50.0100.00921.92
8.3.40.0130.00318.80
8.3.30.0030.01018.96
8.3.20.0050.00220.30
8.3.10.0060.00321.88
8.3.00.0070.00019.56
8.2.180.0140.00725.92
8.2.170.0120.00322.96
8.2.160.0030.01019.47
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.01326.16
8.2.120.0050.00320.59
8.2.110.0030.00620.37
8.2.100.0080.00319.21
8.2.90.0000.00819.08
8.2.80.0060.00319.39
8.2.70.0030.00617.63
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0070.00018.16
8.2.30.0000.00817.99
8.2.20.0050.00317.68
8.2.10.0070.00017.88
8.2.00.0040.00717.68
8.1.280.0100.01025.92
8.1.270.0040.00422.09
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00923.78
8.1.230.0070.00419.15
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.25
8.1.190.0080.00017.40
8.1.180.0000.00818.64
8.1.170.0030.00518.52
8.1.160.0000.00722.05
8.1.150.0050.00218.74
8.1.140.0000.00717.26
8.1.130.0040.00417.83
8.1.120.0070.00017.40
8.1.110.0050.00317.41
8.1.100.0040.00417.23
8.1.90.0000.00717.26
8.1.80.0080.00017.45
8.1.70.0000.00717.40
8.1.60.0000.00917.46
8.1.50.0090.00017.49
8.1.40.0000.00817.48
8.1.30.0030.00617.52
8.1.20.0000.00717.67
8.1.10.0040.00417.50
8.1.00.0040.00417.39
8.0.300.0000.00718.77
8.0.290.0070.00017.02
8.0.280.0000.00718.47
8.0.270.0000.00717.25
8.0.260.0000.00717.35
8.0.250.0030.00316.89
8.0.240.0000.00716.93
8.0.230.0030.00616.87
8.0.220.0030.00316.69
8.0.210.0030.00716.84
8.0.200.0070.00016.90
8.0.190.0000.00716.88
8.0.180.0040.00416.80
8.0.170.0050.00316.85
8.0.160.0000.00716.85
8.0.150.0040.00416.65
8.0.140.0080.00016.76
8.0.130.0000.00513.18
8.0.120.0000.00816.81
8.0.110.0050.00216.81
8.0.100.0050.00316.82
8.0.90.0040.00416.77
8.0.80.0060.01016.75
8.0.70.0000.00816.72
8.0.60.0040.00416.71
8.0.50.0070.00016.76
8.0.30.0110.01116.85
8.0.20.0120.01117.40
8.0.10.0000.00716.93
8.0.00.0120.00616.79
7.4.330.0050.00015.08
7.4.320.0050.00216.34
7.4.300.0000.00716.48
7.4.290.0030.00316.54
7.4.280.0000.00716.34
7.4.270.0000.00816.57
7.4.260.0060.00016.34
7.4.250.0040.00416.43
7.4.240.0040.00416.45
7.4.230.0020.00516.44
7.4.220.0070.01316.63
7.4.210.0070.01016.45
7.4.200.0040.00416.58
7.4.160.0130.00416.52
7.4.150.0150.00317.40
7.4.140.0130.00717.86
7.4.130.0120.00616.52
7.4.120.0080.00916.44
7.4.110.0060.01116.47
7.4.100.0140.00916.41
7.4.90.0060.01216.50
7.4.80.0030.01319.39
7.4.70.0130.00316.36
7.4.60.0090.00916.30
7.4.50.0000.00916.35
7.4.40.0100.00716.44
7.4.30.0000.01516.40
7.4.00.0040.01114.91
7.3.330.0000.00613.01
7.3.320.0030.00313.17
7.3.310.0000.00716.21
7.3.300.0000.00716.10
7.3.290.0080.00816.15
7.3.280.0080.01216.22
7.3.270.0130.01317.40
7.3.260.0060.01016.39
7.3.250.0090.00816.40
7.3.240.0060.01316.24
7.3.230.0100.00616.39
7.3.210.0100.00616.30
7.3.200.0030.01519.39
7.3.190.0060.01016.28
7.3.180.0090.00616.45
7.3.170.0090.00916.33
7.3.160.0130.00316.25
7.2.330.0130.00616.59
7.2.320.0080.00816.63
7.2.310.0110.00616.76
7.2.300.0120.00416.45
7.2.290.0100.00716.68
7.2.60.0030.01016.62
7.2.00.0040.00819.33
7.1.200.0040.00815.49
7.1.100.0040.00718.02
7.1.70.0030.00617.08
7.1.60.0070.00719.19
7.1.50.0100.01016.73
7.1.00.0100.07022.31
7.0.200.0130.01014.76
7.0.140.0030.05722.18
7.0.60.0070.07719.98
7.0.50.0030.06317.82
7.0.40.0030.08720.11
7.0.30.0230.08320.13
7.0.20.0130.04720.10
7.0.10.0070.08720.11
7.0.00.0030.08020.20
5.6.280.0070.06720.91
5.6.210.0000.09020.63
5.6.200.0200.07718.19
5.6.190.0100.06720.41
5.6.180.0230.04020.50
5.6.170.0330.07020.51
5.6.160.0070.04720.62
5.6.150.0130.03318.14
5.6.140.0100.08018.22
5.6.130.0100.05018.24
5.6.120.0030.06321.15
5.6.110.0100.06320.99
5.6.100.0070.08321.04
5.6.90.0030.04320.98
5.6.80.0000.08720.38
5.5.350.0230.07320.41
5.5.340.0070.08017.98
5.5.330.0130.07720.57
5.5.320.0300.06020.20
5.5.310.0370.07020.35
5.5.300.0200.06717.94
5.5.290.0100.06717.95
5.5.280.0070.07320.98
5.5.270.0170.06720.75
5.5.260.0130.07020.78
5.5.250.0070.07320.70
5.5.240.0030.05020.29
5.4.450.0200.06319.48
5.4.440.0600.07019.68
5.4.430.0100.06719.45
5.4.420.0170.05019.56
5.4.410.0200.07019.39
5.4.400.0130.07019.39
5.4.390.0200.06319.06
5.4.380.0230.05318.73
5.4.370.0070.06318.74
5.4.360.0230.05318.75
5.4.350.0100.04014.02
5.4.340.0070.03713.81
5.4.320.0070.03714.27
5.4.310.0100.03714.50
5.4.300.0070.04014.26
5.4.290.0130.03314.27
5.4.280.0100.04714.18
5.4.270.0070.04014.16
5.4.260.0070.04014.16
5.4.250.0130.04014.15
5.4.240.0030.04314.39
5.4.230.0170.03014.13
5.4.220.0070.03314.08
5.4.210.0070.03714.39
5.4.200.0100.03714.13
5.4.190.0030.04314.16
5.4.180.0070.05314.27
5.4.170.0030.04014.17
5.4.160.0030.04014.27
5.4.150.0100.03714.23
5.4.140.0070.04013.86
5.4.130.0130.03314.05
5.4.120.0170.04313.78
5.4.110.0130.04313.80
5.4.100.0070.04313.90
5.4.90.0130.03313.80
5.4.80.0130.04013.73
5.4.70.0030.04013.93
5.4.60.0200.03013.78
5.4.50.0100.04013.93
5.4.40.0100.04313.81
5.4.30.0070.03713.79
5.4.20.0070.04313.91
5.4.10.0000.04713.75
5.4.00.0030.04313.30
5.3.290.0100.04314.70
5.3.280.0200.04014.74
5.3.270.0070.04714.59
5.3.260.0230.03314.77
5.3.250.0100.04314.58
5.3.240.0100.03714.55
5.3.230.0100.04714.59
5.3.220.0100.04014.71
5.3.210.0070.04314.75
5.3.200.0030.05714.49
5.3.190.0130.03714.73
5.3.180.0130.04014.50
5.3.170.0070.04714.63
5.3.160.0070.04314.54
5.3.150.0200.03314.75
5.3.140.0100.04014.66
5.3.130.0130.04014.60
5.3.120.0030.04714.66
5.3.110.0130.04014.73
5.3.100.0030.04714.03
5.3.90.0130.04314.02
5.3.80.0070.04314.06
5.3.70.0100.04014.16
5.3.60.0170.04314.04
5.3.50.0070.04713.94
5.3.40.0000.04713.99
5.3.30.0030.05013.95
5.3.20.0070.04013.67
5.3.10.0070.04013.64
5.3.00.0070.03713.78
5.2.170.0100.03011.10
5.2.160.0100.02711.30
5.2.150.0000.03711.13
5.2.140.0030.03311.18
5.2.130.0100.03311.18
5.2.120.0100.02711.14
5.2.110.0100.03711.17
5.2.100.0030.04011.09
5.2.90.0070.03311.14
5.2.80.0030.03711.09
5.2.70.0100.03011.26
5.2.60.0030.03711.09
5.2.50.0130.03011.18
5.2.40.0000.03311.14
5.2.30.0030.03311.00
5.2.20.0000.03311.12
5.2.10.0030.03011.03
5.2.00.0030.03010.91
5.1.60.0070.02010.07
5.1.50.0030.0379.97
5.1.40.0070.0239.94
5.1.30.0070.02310.25
5.1.20.0070.03010.44
5.1.10.0100.02310.00
5.1.00.0030.03010.14
5.0.50.0030.0208.50
5.0.40.0000.0238.39
5.0.30.0070.0308.21
5.0.20.0000.0278.17
5.0.10.0030.0208.17
5.0.00.0000.0338.19
4.4.90.0000.0175.86
4.4.80.0070.0175.93
4.4.70.0030.0205.94
4.4.60.0000.0235.83
4.4.50.0000.0275.89
4.4.40.0000.0275.91
4.4.30.0070.0105.95
4.4.20.0030.0176.00
4.4.10.0030.0176.00
4.4.00.0000.0275.89
4.3.110.0070.0135.75
4.3.100.0030.0135.85
4.3.90.0000.0175.73
4.3.80.0000.0275.72
4.3.70.0030.0135.73
4.3.60.0030.0135.77
4.3.50.0030.0175.81
4.3.40.0070.0205.72
4.3.30.0000.0174.67
4.3.20.0030.0134.46
4.3.10.0000.0174.56
4.3.00.0130.0236.71

preferences:
57.26 ms | 401 KiB | 5 Q