3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { echo 'bar'; } } $r = new ReflectionClass('Foo'); $o = $r->newInstanceWithoutConstructor(); var_dump($o); $o->__construct();

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.0120.00318.31
8.3.50.0080.01022.10
8.3.40.0100.00718.58
8.3.30.0040.01119.05
8.3.20.0080.00020.07
8.3.10.0070.00022.10
8.3.00.0060.00322.40
8.2.180.0030.01016.63
8.2.170.0130.00722.96
8.2.160.0030.01020.77
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00017.50
8.2.110.0100.00719.37
8.2.100.0070.00417.78
8.2.90.0040.00419.08
8.2.80.0000.00917.97
8.2.70.0000.00917.38
8.2.60.0080.00017.80
8.2.50.0030.00618.07
8.2.40.0000.00818.16
8.2.30.0050.00517.99
8.2.20.0000.00717.58
8.2.10.0000.00819.32
8.2.00.0030.00517.67
8.1.280.0100.00325.92
8.1.270.0090.00022.19
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00320.98
8.1.230.0000.01117.45
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.11
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0060.00318.52
8.1.160.0040.00421.87
8.1.150.0080.00018.55
8.1.140.0000.00717.28
8.1.130.0030.00317.73
8.1.120.0000.00717.32
8.1.110.0040.00417.38
8.1.100.0040.00417.38
8.1.90.0070.00017.32
8.1.80.0050.00217.38
8.1.70.0000.00717.40
8.1.60.0050.00317.56
8.1.50.0040.00417.55
8.1.40.0000.00717.46
8.1.30.0000.00817.61
8.1.20.0030.00617.55
8.1.10.0080.00017.57
8.1.00.0040.00417.39
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00518.44
8.0.270.0000.00717.16
8.0.260.0000.00716.84
8.0.250.0040.00416.82
8.0.240.0000.00816.82
8.0.230.0070.00016.84
8.0.220.0040.00416.84
8.0.210.0070.00016.89
8.0.200.0030.00316.75
8.0.190.0080.00316.84
8.0.180.0000.00716.82
8.0.170.0030.00516.73
8.0.160.0070.00016.77
8.0.150.0000.00716.82
8.0.140.0000.00716.67
8.0.130.0050.00013.29
8.0.120.0040.00416.84
8.0.110.0040.00416.82
8.0.100.0040.00416.87
8.0.90.0040.00416.64
8.0.80.0090.00916.87
8.0.70.0080.00016.69
8.0.60.0050.00216.88
8.0.50.0050.00216.88
8.0.30.0100.00916.77
8.0.20.0140.00917.40
8.0.10.0040.00416.98
8.0.00.0100.00716.59
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0000.00716.44
7.4.290.0070.00016.49
7.4.280.0000.00816.63
7.4.270.0060.00016.43
7.4.260.0030.00316.52
7.4.250.0000.00716.54
7.4.240.0050.00216.49
7.4.230.0030.00316.40
7.4.220.0110.00716.57
7.4.210.0080.00816.60
7.4.200.0000.00716.58
7.4.190.0000.00816.73
7.4.160.0060.01616.46
7.4.150.0130.01017.40
7.4.140.0090.00917.86
7.4.130.0090.01116.52
7.4.120.0060.01316.52
7.4.110.0110.00616.56
7.4.100.0100.00716.43
7.4.90.0130.00316.50
7.4.80.0180.00319.39
7.4.70.0100.00616.43
7.4.60.0000.01516.45
7.4.50.0020.00216.32
7.4.40.0080.00522.77
7.4.30.0110.00516.61
7.4.00.0050.01214.95
7.3.330.0050.00013.30
7.3.320.0020.00213.10
7.3.310.0030.00316.27
7.3.300.0060.00016.28
7.3.290.0080.00616.16
7.3.280.0120.00616.20
7.3.270.0120.00617.40
7.3.260.0040.01916.38
7.3.250.0120.01116.34
7.3.240.0000.01616.18
7.3.230.0170.00016.39
7.3.210.0060.01116.40
7.3.200.0130.01019.39
7.3.190.0110.00616.31
7.3.180.0070.01016.16
7.3.170.0120.00916.52
7.3.160.0130.00416.23
7.3.120.0120.00514.68
7.3.110.0070.01214.77
7.3.100.0030.01214.53
7.3.90.0030.01214.79
7.3.80.0030.00914.70
7.3.70.0030.00814.89
7.3.60.0070.00714.84
7.3.50.0030.01014.60
7.3.40.0060.00614.83
7.3.30.0070.00714.82
7.3.20.0080.00816.71
7.3.10.0040.01116.29
7.3.00.0060.00616.30
7.2.330.0030.01416.51
7.2.320.0100.00716.39
7.2.310.0090.00916.52
7.2.300.0200.00416.69
7.2.290.0100.00616.58
7.2.250.0070.01114.68
7.2.240.0070.01414.83
7.2.230.0060.01214.75
7.2.220.0080.00814.84
7.2.210.0040.00715.21
7.2.200.0000.01414.79
7.2.190.0070.00714.91
7.2.180.0070.01014.82
7.2.170.0110.00314.94
7.2.60.0090.00616.58
7.2.00.0060.01219.01
7.1.330.0120.00315.90
7.1.320.0030.00715.91
7.1.310.0100.00015.54
7.1.300.0100.00615.89
7.1.290.0060.00915.63
7.1.280.0050.00815.61
7.1.270.0000.01615.84
7.1.260.0070.00715.80
7.1.200.0110.00415.76
7.1.100.0070.00317.64
7.1.70.0000.00716.93
7.1.60.0070.01819.82
7.1.50.0130.01016.95
7.1.00.0100.06722.40
7.0.200.0070.01016.84
7.0.140.0000.07322.09
7.0.60.0070.07019.89
7.0.50.0100.07317.95
7.0.40.0100.08320.14
7.0.30.0530.07320.21
7.0.20.0170.05020.27
7.0.10.0270.07020.10
7.0.00.0000.06020.05
5.6.280.0000.07721.08
5.6.210.0130.06720.64
5.6.200.0070.07018.29
5.6.190.0070.05020.58
5.6.180.3230.04020.53
5.6.170.0200.04020.51
5.6.160.0200.06020.61
5.6.150.0070.04718.19
5.6.140.0030.03718.17
5.6.130.0000.04318.14
5.6.120.0130.08020.98
5.6.110.0170.05720.89
5.6.100.0070.05720.98
5.6.90.0070.08321.07
5.6.80.0070.07720.38
5.6.70.0270.06320.51
5.5.350.0030.06320.45
5.5.340.0130.03318.08
5.5.330.0000.04720.42
5.5.320.0070.03720.30
5.5.310.0270.04020.34
5.5.300.0130.07318.09
5.5.290.0030.07017.99
5.5.280.0070.08320.88
5.5.270.0070.04720.76
5.5.260.0130.03020.67
5.5.250.0000.04720.62
5.5.240.0030.04320.34
5.4.450.0730.06019.63
5.4.440.0970.05319.55
5.4.430.0070.06019.64
5.4.420.0230.04719.53
5.4.410.0200.04719.08
5.4.400.0500.05318.62
5.4.390.0600.06018.81
5.4.380.0170.05318.49
5.4.370.0100.04718.61
5.4.360.0070.04018.69
5.4.350.0040.03512.02
5.4.340.0060.05312.02
5.4.320.0080.03812.50
5.4.310.0030.04112.49
5.4.300.0020.04012.50
5.4.290.0130.04512.50
5.4.280.0060.03612.36
5.4.270.0050.03612.36
5.4.260.0080.03912.36
5.4.250.0070.04112.36
5.4.240.0060.05112.36
5.4.230.0090.04212.35
5.4.220.0050.03612.36
5.4.210.0030.04512.36
5.4.200.0040.03812.35
5.4.190.0050.03912.36
5.4.180.0030.04012.36
5.4.170.0090.03312.36
5.4.160.0050.04012.36
5.4.150.0080.03512.36
5.4.140.0040.04012.04
5.4.130.0070.03412.03
5.4.120.0060.03511.98
5.4.110.0060.03411.97
5.4.100.0090.03211.98
5.4.90.0050.03711.98
5.4.80.0040.03711.98
5.4.70.0080.03211.98
5.4.60.0070.04211.97
5.4.50.0040.03711.97
5.4.40.0040.03911.96
5.4.30.0070.04211.96
5.4.20.0060.03911.96
5.4.10.0040.03611.96
5.4.00.0000.04111.45
5.3.290.0070.04112.80
5.3.280.0060.03812.71
5.3.270.0080.03912.73
5.3.260.0060.03912.71
5.3.250.0070.05012.72
5.3.240.0040.03812.72
5.3.230.0040.03812.71
5.3.220.0080.04312.68
5.3.210.0080.03912.68
5.3.200.0080.03512.68
5.3.190.0070.03912.68
5.3.180.0090.03712.68
5.3.170.0080.03912.67
5.3.160.0040.03912.67
5.3.150.0060.03612.67
5.3.140.0060.03512.66
5.3.130.0070.03912.66
5.3.120.0030.04912.66
5.3.110.0060.04612.66
5.3.100.0090.04012.12
5.3.90.0040.03712.09
5.3.80.0050.03612.07
5.3.70.0090.04212.07
5.3.60.0030.03812.06
5.3.50.0080.03312.00
5.3.40.0050.03812.00
5.3.30.0070.03311.96
5.3.20.0060.03411.73
5.3.10.0060.03411.70
5.3.00.0060.03511.68
5.2.170.0020.0399.18
5.2.160.0030.0309.18
5.2.150.0070.0279.18
5.2.140.0050.0309.18
5.2.130.0040.0309.13
5.2.120.0060.0279.13
5.2.110.0020.0319.14
5.2.100.0010.0319.14
5.2.90.0050.0299.14
5.2.80.0020.0329.14
5.2.70.0050.0299.13
5.2.60.0070.0279.09
5.2.50.0030.0319.07
5.2.40.0080.0259.03
5.2.30.0090.0289.02
5.2.20.0060.0299.00
5.2.10.0080.0248.91
5.2.00.0020.0318.77
5.1.60.0040.0238.04
5.1.50.0040.0248.05
5.1.40.0040.0248.04
5.1.30.0050.0298.39
5.1.20.0030.0288.41
5.1.10.0080.0358.13
5.1.00.0040.0258.12
5.0.50.0030.0216.60
5.0.40.0060.0296.46
5.0.30.0040.0346.28
5.0.20.0020.0226.25
5.0.10.0090.0146.23
5.0.00.0060.0276.22
4.4.90.0020.0224.77
4.4.80.0030.0184.76
4.4.70.0040.0144.75
4.4.60.0030.0164.75
4.4.50.0030.0174.77
4.4.40.0040.0244.71
4.4.30.0030.0164.76
4.4.20.0040.0144.84
4.4.10.0040.0134.84
4.4.00.0040.0244.76
4.3.110.0010.0174.67
4.3.100.0020.0194.66
4.3.90.0030.0144.64
4.3.80.0010.0254.58
4.3.70.0030.0184.63
4.3.60.0050.0154.63
4.3.50.0020.0204.63
4.3.40.0050.0244.54
4.3.30.0020.0213.29
4.3.20.0030.0153.26
4.3.10.0020.0223.23
4.3.00.0170.0207.35

preferences:
52.26 ms | 401 KiB | 5 Q