3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Proxy extends Base { public function __construct($initializer) { // do proxy initializing stuff, NOT calling base object's (i.e. parent's) constructor } } class Base { public function __construct($data) { echo $data; } } $proxy = new Proxy(function(){}); $reflection = new ReflectionObject($proxy); $parentReflection = $reflection->getParentClass(); $parentConstructor = $parentReflection->getMethod('__construct'); $parentConstructor->invoke($proxy, 'Hello world!');

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.0100.01016.63
8.3.50.0050.00921.94
8.3.40.0110.01118.87
8.3.30.0110.00419.04
8.3.20.0030.00620.20
8.3.10.0070.00023.65
8.3.00.0080.00019.25
8.2.180.0090.00918.41
8.2.170.0030.01022.96
8.2.160.0070.01020.55
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0000.00722.21
8.2.110.0090.00022.25
8.2.100.0110.00317.72
8.2.90.0050.00319.20
8.2.80.0060.00317.97
8.2.70.0030.00617.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0050.00218.09
8.2.30.0040.00418.13
8.2.20.0080.00017.57
8.2.10.0040.00418.02
8.2.00.0030.00617.60
8.1.280.0070.00725.92
8.1.270.0080.00024.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.91
8.1.230.0120.00019.02
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.38
8.1.190.0000.00717.52
8.1.180.0040.00418.10
8.1.170.0030.00618.39
8.1.160.0000.00722.01
8.1.150.0000.00818.64
8.1.140.0040.00417.38
8.1.130.0000.00717.88
8.1.120.0040.00417.46
8.1.110.0050.00317.30
8.1.100.0040.00417.50
8.1.90.0000.00717.52
8.1.80.0040.00417.44
8.1.70.0030.00317.38
8.1.60.0030.00517.47
8.1.50.0040.00417.56
8.1.40.0000.00917.52
8.1.30.0000.00817.60
8.1.20.0000.00717.68
8.1.10.0000.00817.50
8.1.00.0040.00417.37
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0070.00018.45
8.0.270.0040.00416.82
8.0.260.0030.00317.14
8.0.250.0030.00316.92
8.0.240.0040.00416.83
8.0.230.0000.00716.95
8.0.220.0030.00316.91
8.0.210.0070.00016.92
8.0.200.0030.00316.91
8.0.190.0000.00717.01
8.0.180.0040.00416.80
8.0.170.0000.00816.89
8.0.160.0040.00416.88
8.0.150.0030.00316.77
8.0.140.0040.00416.83
8.0.130.0000.00913.32
8.0.120.0040.00416.88
8.0.110.0000.00716.91
8.0.100.0000.00816.91
8.0.90.0050.00216.93
8.0.80.0030.01716.89
8.0.70.0050.00316.96
8.0.60.0040.00417.01
8.0.50.0000.00816.79
8.0.30.0080.01417.06
8.0.20.0080.01017.40
8.0.10.0000.00716.90
8.0.00.0140.00516.83
7.4.330.0000.00515.00
7.4.320.0000.00716.52
7.4.300.0060.00016.51
7.4.290.0040.00416.59
7.4.280.0000.00716.48
7.4.270.0030.00516.50
7.4.260.0030.00316.59
7.4.250.0000.00716.52
7.4.240.0020.00516.50
7.4.230.0060.00016.69
7.4.220.0100.00716.48
7.4.210.0050.01016.58
7.4.200.0070.00016.34
7.4.190.0030.00316.46
7.4.160.0070.01016.42
7.4.150.0140.00417.40
7.4.140.0080.00817.86
7.4.130.0100.00716.46
7.4.120.0120.00716.56
7.4.110.0090.01416.64
7.4.100.0090.00916.49
7.4.90.0090.00916.49
7.4.80.0100.00719.39
7.4.70.0120.00416.52
7.4.60.0110.00616.57
7.4.50.0040.00416.57
7.4.40.0140.00022.77
7.4.30.0070.01416.41
7.4.00.0070.00714.94
7.3.330.0000.00513.30
7.3.320.0000.00513.29
7.3.310.0030.00316.32
7.3.300.0030.00316.31
7.3.290.0090.00916.23
7.3.280.0120.00916.32
7.3.270.0100.00717.40
7.3.260.0060.01016.48
7.3.250.0120.00516.31
7.3.240.0120.01216.45
7.3.230.0000.01616.39
7.3.210.0130.01016.60
7.3.200.0040.01419.39
7.3.190.0100.00716.38
7.3.180.0090.00616.45
7.3.170.0130.00316.64
7.3.160.0060.01016.55
7.3.120.0070.01014.87
7.3.00.0070.00716.39
7.2.330.0060.01616.55
7.2.320.0090.00916.36
7.2.310.0120.00616.37
7.2.300.0070.01016.63
7.2.290.0030.01316.77
7.2.130.0130.00717.03
7.2.120.0000.01816.88
7.2.110.0060.00616.96
7.2.100.0100.00016.86
7.2.90.0120.00616.98
7.2.80.0060.00917.07
7.2.70.0100.01016.86
7.2.60.0020.01316.88
7.2.50.0120.00616.98
7.2.40.0070.00416.93
7.2.30.0060.00616.88
7.2.20.0090.00316.72
7.2.10.0080.00816.92
7.2.00.0070.00918.21
7.1.250.0070.00715.79
7.1.240.0100.00315.86
7.1.230.0030.01015.85
7.1.220.0090.00315.81
7.1.210.0030.01115.66
7.1.200.0020.01015.74
7.1.190.0100.00715.65
7.1.180.0000.01315.76
7.1.170.0070.00715.68
7.1.160.0070.00715.95
7.1.150.0030.00715.68
7.1.140.0030.01015.91
7.1.130.0060.00615.52
7.1.120.0080.00315.87
7.1.110.0030.00715.93
7.1.100.0050.00517.16
7.1.90.0090.00615.80
7.1.80.0080.00615.86
7.1.70.0090.00316.55
7.1.60.0070.01217.48
7.1.50.0050.01316.27
7.1.40.0040.00415.49
7.1.30.0050.00515.80
7.1.20.0000.01215.56
7.1.10.0030.01015.54
7.1.00.0070.03818.99
7.0.330.0070.00415.45
7.0.320.0110.00715.43
7.0.310.0000.01015.29
7.0.300.0040.01115.45
7.0.290.0060.00615.27
7.0.280.0100.00315.61
7.0.270.0040.00415.41
7.0.260.0110.00415.46
7.0.250.0050.00515.16
7.0.240.0080.00315.09
7.0.230.0060.00615.58
7.0.220.0060.00315.44
7.0.210.0100.00315.33
7.0.200.0270.00714.79
7.0.190.0070.00315.13
7.0.180.0050.00515.38
7.0.170.0030.00615.36
7.0.160.0030.00915.14
7.0.150.0040.00414.96
7.0.140.0040.04118.55
7.0.130.0040.00415.53
7.0.120.0080.00415.36
7.0.110.0030.01015.31
7.0.100.0200.04817.68
7.0.90.0250.04217.54
7.0.80.0220.03717.59
7.0.70.0250.02317.67
7.0.60.0040.04617.49
7.0.50.0220.04517.92
7.0.40.0050.04716.76
7.0.30.0110.04016.71
7.0.20.0030.04016.71
7.0.10.0030.04516.73
7.0.00.0100.04316.78
5.6.380.0030.01314.52
5.6.370.0040.01114.35
5.6.360.0060.00314.27
5.6.350.0000.01414.26
5.6.340.0070.00414.10
5.6.330.0120.00014.51
5.6.320.0070.00714.19
5.6.310.0030.01014.18
5.6.300.0040.01114.48
5.6.290.0040.00714.06
5.6.280.0050.03817.82
5.6.270.0060.00914.11
5.6.260.0030.01214.26
5.6.250.0110.04017.44
5.6.240.0100.04717.44
5.6.230.0110.04317.35
5.6.220.0150.04017.33
5.6.210.0050.03017.31
5.6.200.0050.04517.69
5.6.190.0050.04217.62
5.6.180.0090.04317.53
5.6.170.0050.04417.58
5.6.160.0080.04117.56
5.6.150.0020.04717.48
5.6.140.0080.04617.64
5.6.130.0080.04517.56
5.6.120.0050.04817.59
5.6.110.0000.05217.62
5.6.100.0050.04717.53
5.6.90.0070.03217.57
5.6.80.0070.02517.27
5.6.70.0070.03917.21
5.6.60.0070.04417.23
5.6.50.0070.04217.32
5.6.40.0050.03717.44
5.6.30.0030.04717.21
5.6.20.0100.02517.29
5.6.10.0050.05117.44
5.6.00.0050.03017.33
5.5.380.0080.04315.85
5.5.370.0050.04315.72
5.5.360.0090.03315.86
5.5.350.0050.04415.77
5.5.340.0030.04215.97
5.5.330.0070.04015.88
5.5.320.0060.04215.95
5.5.310.0090.03815.95
5.5.300.0080.04015.91
5.5.290.0030.04315.90
5.5.280.0040.04615.90
5.5.270.0070.04516.01
5.5.260.0030.04615.92
5.5.250.0050.04415.80
5.5.240.0050.04115.45
5.5.230.0060.04515.54
5.5.220.0080.03715.55
5.5.210.0120.03715.69
5.5.200.0070.04015.65
5.5.190.0050.04015.70
5.5.180.0030.04315.61
5.5.170.0100.00311.12
5.5.160.0070.03315.56
5.5.150.0040.04515.59
5.5.140.0060.04515.53
5.5.130.0040.02915.41
5.5.120.0090.03715.40
5.5.110.0020.04215.65
5.5.100.0070.02515.68
5.5.90.0030.02615.64
5.5.80.0080.03815.71
5.5.70.0000.03015.54
5.5.60.0050.04315.58
5.5.50.0070.04215.39
5.5.40.0080.04315.64
5.5.30.0100.03415.54
5.5.20.0080.04015.54
5.5.10.0070.03115.50
5.5.00.0100.04015.48
5.4.450.0050.04215.34
5.4.440.0050.04515.13
5.4.430.0060.04015.29
5.4.420.0080.04315.25
5.4.410.0040.04515.07
5.4.400.0080.03814.97
5.4.390.0100.03715.06
5.4.380.0030.04215.10
5.4.370.0050.04015.08
5.4.360.0070.03814.96
5.4.350.0070.04015.01
5.4.340.0070.03715.11
5.4.330.0040.00410.70
5.4.320.0020.03014.93
5.4.310.0030.04314.91
5.4.300.0020.04514.95
5.4.290.0110.04314.94
5.4.280.0040.04515.00
5.4.270.0080.04015.04
5.4.260.0050.04015.13
5.4.250.0020.03315.15
5.4.240.0070.03715.13
5.4.230.0030.04315.01
5.4.220.0020.04015.03
5.4.210.0050.02714.89
5.4.200.0080.03614.80
5.4.190.0040.04414.96
5.4.180.0070.03514.98
5.4.170.0070.03815.07
5.4.160.0070.03315.06
5.4.150.0070.04015.01
5.4.140.0090.03613.81
5.4.130.0080.03213.60
5.4.120.0050.03713.67
5.4.110.0050.04113.81
5.4.100.0050.03913.76
5.4.90.0080.03613.83
5.4.80.0050.04113.70
5.4.70.0030.02513.80
5.4.60.0030.03813.70
5.4.50.0050.03613.53
5.4.40.0060.03613.60
5.4.30.0170.02113.67
5.4.20.0060.04013.83
5.4.10.0070.04013.58
5.4.00.0030.03813.43
5.3.290.0030.02912.66
5.3.280.0030.04112.47
5.3.270.0050.04312.69
5.3.260.0030.04212.58
5.3.250.0110.03212.63
5.3.240.0050.04012.58
5.3.230.0100.02012.51
5.3.220.0090.03712.45
5.3.210.0030.04312.53
5.3.200.0020.04112.50
5.3.190.0030.04212.55
5.3.180.0060.04112.60
5.3.170.0090.03712.57
5.3.160.0100.03812.62
5.3.150.0070.03212.67
5.3.140.0080.03712.55
5.3.130.0070.03712.55
5.3.120.0030.04412.58
5.3.110.0030.04612.56
5.3.100.0030.04112.27
5.3.90.0080.03812.28
5.3.80.0060.04312.09
5.3.70.0020.04312.16
5.3.60.0050.03212.18
5.3.50.0040.03312.26
5.3.40.0040.03912.28
5.3.30.0060.04112.19
5.3.20.0030.03812.20
5.3.10.0020.03111.94
5.3.00.0060.04012.07
5.2.170.0010.03810.50
5.2.160.0020.02510.54
5.2.150.0080.02710.61
5.2.140.0030.03610.61
5.2.130.0030.02610.47
5.2.120.0050.03110.49
5.2.110.0060.03010.49
5.2.100.0030.03210.48
5.2.90.0030.03310.57
5.2.80.0060.03010.56
5.2.70.0030.03410.59
5.2.60.0050.03210.47
5.2.50.0030.03010.45
5.2.40.0030.02710.41
5.2.30.0030.02910.47
5.2.20.0020.03510.43
5.2.10.0070.02310.43
5.2.00.0080.03210.35
5.1.60.0060.01510.04
5.1.50.0040.0259.97
5.1.40.0040.0309.99
5.1.30.0030.02910.17
5.1.20.0020.03310.21
5.1.10.0080.02710.04
5.1.00.0030.03110.02
5.0.50.0030.0169.30
5.0.40.0030.0139.21
5.0.30.0070.0279.08
5.0.20.0000.0129.08
5.0.10.0020.0128.97
5.0.00.0050.0159.11
4.4.90.0030.0188.69
4.4.80.0020.0208.69
4.4.70.0030.0168.69
4.4.60.0020.0208.69
4.4.50.0030.0138.69
4.4.40.0030.0238.69
4.4.30.0040.0208.69
4.4.20.0010.0198.69
4.4.10.0030.0208.69
4.4.00.0050.0278.69
4.3.110.0000.0198.69
4.3.100.0010.0108.69
4.3.90.0010.0108.69
4.3.80.0020.0138.69
4.3.70.0030.0088.69
4.3.60.0040.0108.69
4.3.50.0000.0108.69
4.3.40.0020.0148.69
4.3.30.0030.0078.69
4.3.20.0020.0108.69
4.3.10.0020.0088.69
4.3.00.0000.0098.69

preferences:
55.28 ms | 401 KiB | 5 Q