3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function bar() { echo 'baz'; } } class Bar extends Foo { public function foo() { $reflected = new ReflectionMethod('Foo', 'bar'); $reflected->setAccessible(true); $reflected->invoke($this); } } $bar = new Bar(); $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.5.30.0080.00917.60
8.5.20.0170.00520.16
8.5.10.0080.01020.06
8.5.00.0100.01120.30
8.4.180.0120.01119.71
8.4.170.0160.00622.04
8.4.160.0130.01321.99
8.4.150.0100.00316.82
8.4.140.0150.00717.42
8.4.130.0060.00618.87
8.4.120.0060.00419.71
8.4.110.0040.00422.47
8.4.100.0110.01017.61
8.4.90.0070.01020.75
8.4.80.0060.00518.85
8.4.70.0060.01520.59
8.4.60.0110.00917.75
8.4.50.0110.01017.73
8.4.40.0100.00717.77
8.4.30.0140.00717.55
8.4.20.0050.00317.52
8.4.10.0090.00017.70
8.3.300.0170.00818.27
8.3.290.0120.00720.85
8.3.280.0130.00818.31
8.3.270.0150.00716.65
8.3.260.0050.00316.62
8.3.250.0120.00716.58
8.3.240.0100.00816.48
8.3.230.0040.00516.51
8.3.220.0130.00518.75
8.3.210.0130.00816.47
8.3.200.0060.00316.45
8.3.190.0110.00716.39
8.3.180.0090.01118.31
8.3.170.0180.00018.72
8.3.160.0180.00017.05
8.3.150.0000.00719.11
8.3.140.0040.00416.36
8.3.130.0000.00816.81
8.3.120.0000.00920.68
8.3.110.0030.00516.78
8.3.100.0080.00818.28
8.3.90.0040.00416.73
8.3.80.0060.00317.97
8.3.70.0100.01018.18
8.3.60.0140.00016.63
8.3.50.0140.00822.11
8.3.40.0040.01918.53
8.3.30.0140.00418.72
8.3.20.0140.00320.25
8.3.10.0080.00020.36
8.3.00.0080.00021.90
8.2.300.0100.00920.32
8.2.290.0050.00316.41
8.2.280.0040.00418.41
8.2.270.0040.01420.71
8.2.260.0030.00617.34
8.2.250.0170.00318.17
8.2.240.0040.00416.57
8.2.230.0060.00320.94
8.2.220.0050.00324.06
8.2.210.0070.01026.77
8.2.200.0030.00616.75
8.2.190.0060.01216.58
8.2.180.0070.00718.42
8.2.170.0040.01122.96
8.2.160.0140.00020.39
8.2.150.0070.00024.18
8.2.140.0110.00624.66
8.2.130.0040.00420.61
8.2.120.0070.00026.35
8.2.110.0070.00319.19
8.2.100.0040.00817.93
8.2.90.0050.00319.17
8.2.80.0080.00017.97
8.2.70.0070.00317.63
8.2.60.0040.00417.80
8.2.50.0090.00318.09
8.2.40.0040.00420.59
8.2.30.0040.00419.48
8.2.20.0050.00517.49
8.2.10.0050.00318.00
8.2.00.0070.00018.01
8.1.340.0100.01020.15
8.1.330.0120.00915.98
8.1.320.0130.00616.04
8.1.310.0070.01016.86
8.1.300.0060.00318.35
8.1.290.0000.01118.88
8.1.280.0150.00625.92
8.1.270.0080.00022.11
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.21
8.1.230.0070.00417.77
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0050.00317.25
8.1.180.0030.00518.10
8.1.170.0040.00418.40
8.1.160.0030.00520.68
8.1.150.0060.00318.88
8.1.140.0030.00519.43
8.1.130.0050.00217.52
8.1.120.0030.00317.26
8.1.110.0040.00417.38
8.1.100.0040.00417.33
8.1.90.0000.00817.38
8.1.80.0050.00317.23
8.1.70.0000.00717.29
8.1.60.0000.00717.57
8.1.50.0000.00817.40
8.1.40.0060.00317.41
8.1.30.0000.00817.69
8.1.20.0000.00817.56
8.1.10.0000.00717.60
8.1.00.0080.00017.48
8.0.300.0030.00618.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0070.00017.13
8.0.260.0080.00017.31
8.0.250.0030.00316.92
8.0.240.0000.00716.89
8.0.230.0030.00316.93
8.0.220.0030.00316.79
8.0.210.0030.00316.81
8.0.200.0030.00316.93
8.0.190.0040.00416.78
8.0.180.0040.00416.82
8.0.170.0040.00416.84
8.0.160.0030.00516.96
8.0.150.0000.00716.86
8.0.140.0060.00316.71
8.0.130.0060.00013.21
8.0.120.0050.00316.80
8.0.110.0040.00416.80
8.0.100.0070.00016.71
8.0.90.0000.00716.78
8.0.80.0090.00616.74
8.0.70.0000.00716.87
8.0.60.0070.00016.89
8.0.50.0000.00716.84
8.0.30.0120.00717.01
8.0.20.0120.01817.40
8.0.10.0080.00016.82
8.0.00.0090.00816.68
7.4.330.0000.00616.81
7.4.320.0000.00616.50
7.4.300.0060.00016.61
7.4.290.0030.00316.37
7.4.280.0000.00716.50
7.4.270.0000.00716.45
7.4.260.0000.00716.59
7.4.250.0000.00716.46
7.4.240.0040.00416.61
7.4.230.0070.00016.62
7.4.220.0030.01416.43
7.4.210.0110.00416.52
7.4.200.0070.00016.48
7.4.160.0130.00316.25
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0070.01016.39
7.4.120.0080.00816.38
7.4.110.0030.01416.57
7.4.100.0090.01216.64
7.4.90.0030.01616.35
7.4.80.0060.01019.39
7.4.70.0060.00916.27
7.4.60.0030.01316.25
7.4.50.0090.00316.51
7.4.40.0090.00616.56
7.4.30.0100.00916.52
7.4.00.0140.00315.02
7.3.330.0000.00613.20
7.3.320.0000.00513.25
7.3.310.0030.00316.36
7.3.300.0000.00716.20
7.3.290.0030.00316.20
7.3.280.0100.00516.22
7.3.270.0060.01017.40
7.3.260.0070.01016.55
7.3.250.0100.00916.23
7.3.240.0130.00616.25
7.3.230.0100.00716.39
7.3.210.0060.00916.19
7.3.200.0130.00519.39
7.3.190.0040.01516.20
7.3.180.0110.00616.45
7.3.170.0130.00616.38
7.3.160.0090.00616.16
7.2.330.0070.01116.70
7.2.320.0030.01416.33
7.2.310.0070.01116.74
7.2.300.0090.00916.68
7.2.290.0190.00316.65
7.2.60.0030.01016.81
7.2.00.0040.01319.20
7.1.200.0070.00715.65
7.1.100.0030.01017.89
7.1.70.0030.00617.05
7.1.60.0100.00319.40
7.1.50.0150.00616.80
7.1.00.0100.07022.44
7.0.200.0340.00014.85
7.0.60.0230.07721.72
7.0.50.0100.07717.88
7.0.40.0000.04720.24
7.0.30.0300.07320.06
7.0.20.0270.08320.18
7.0.10.0030.04320.33
7.0.00.0200.07020.22
5.6.280.0030.03021.05
5.6.210.0070.05320.71
5.6.200.0000.04318.22
5.6.190.0070.07020.55
5.6.180.0170.04320.64
5.6.170.0230.03720.56
5.6.160.0030.09020.71
5.6.150.0070.05018.16
5.6.140.0000.04718.19
5.6.130.0030.05018.28
5.6.120.0000.04721.10
5.6.110.0100.07720.99
5.6.100.0130.05020.96
5.6.90.0030.04320.97
5.6.80.0100.04320.29
5.5.350.0070.07320.41
5.5.340.0100.03717.99
5.5.330.0030.08020.27
5.5.320.0200.05720.27
5.5.310.0300.07020.41
5.5.300.0030.08318.06
5.5.290.0000.06018.00
5.5.280.0100.07320.88
5.5.270.0130.07720.85
5.5.260.0070.04020.80
5.5.250.0100.08320.79
5.5.240.0200.04020.17

preferences:
43.65 ms | 1481 KiB | 5 Q