3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ private $bar = 'baz'; public function setBar($bar) { $this->bar = $bar; } } $h = function ($obj) { get_object_vars($obj); }; $foo = new Foo(); $hydrator = Closure::bind( $h, $foo, // required blueprint! 'Foo' // setting correct class scope (in case of inheritances) ); var_dump($hydrator($foo)); $foo2 = new Foo(); $foo2->setBar('TAB!'); var_dump($hydrator($foo2));

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.40.0100.01018.88
8.3.30.0080.00818.60
8.3.20.0000.00818.60
8.3.10.0000.00820.96
8.3.00.0050.00223.44
8.2.170.0140.00322.96
8.2.160.0120.00320.35
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0060.01019.36
8.2.110.0100.00020.35
8.2.100.0060.00617.78
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0070.00318.04
8.2.50.0040.00418.07
8.2.40.0030.00617.92
8.2.30.0000.00819.95
8.2.20.0040.00417.72
8.2.10.0050.00217.59
8.2.00.0110.00017.71
8.1.270.0040.00423.99
8.1.260.0140.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00922.04
8.1.230.0110.00017.46
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0040.00417.66
8.1.180.0000.00918.10
8.1.170.0040.00418.71
8.1.160.0070.00018.99
8.1.150.0050.00218.65
8.1.140.0040.00417.52
8.1.130.0030.00317.83
8.1.120.0000.00817.45
8.1.110.0040.00417.37
8.1.100.0040.00417.51
8.1.90.0000.00717.41
8.1.80.0000.00717.42
8.1.70.0040.00417.39
8.1.60.0060.00317.62
8.1.50.0030.00517.43
8.1.40.0070.00017.58
8.1.30.0040.00417.55
8.1.20.0080.00017.63
8.1.10.0080.00017.42
8.1.00.0070.00317.35
8.0.300.0030.00618.77
8.0.290.0080.00016.58
8.0.280.0030.00518.41
8.0.270.0080.00017.11
8.0.260.0000.00716.82
8.0.250.0070.00016.86
8.0.240.0040.00716.88
8.0.230.0070.00016.77
8.0.220.0060.00316.87
8.0.210.0040.00416.84
8.0.200.0000.00616.84
8.0.190.0030.00516.86
8.0.180.0070.00016.92
8.0.170.0040.00416.91
8.0.160.0030.00316.79
8.0.150.0050.00316.87
8.0.140.0100.00016.86
8.0.130.0050.00013.31
8.0.120.0070.00016.90
8.0.110.0040.00316.79
8.0.100.0040.00416.90
8.0.90.0000.00716.70
8.0.80.0140.00316.77
8.0.70.0030.00516.84
8.0.60.0040.00416.70
8.0.50.0070.00016.94
8.0.30.0100.01317.06
8.0.20.0080.01217.40
8.0.10.0000.00716.79
8.0.00.0110.01116.62
7.4.330.0050.00014.71
7.4.320.0030.00616.55
7.4.300.0000.00616.36
7.4.290.0030.00316.52
7.4.280.0040.00416.51
7.4.270.0030.00316.40
7.4.260.0030.00313.31
7.4.250.0070.00016.54
7.4.240.0040.00416.56
7.4.230.0000.00716.71
7.4.220.0050.01116.54
7.4.210.0050.01016.58
7.4.200.0000.00716.69
7.4.190.0050.00516.55
7.4.160.0030.01316.35
7.4.150.0030.01517.40
7.4.140.0090.00917.86
7.4.130.0030.01316.50
7.4.120.0080.01116.45
7.4.110.0110.00916.40
7.4.100.0090.00916.59
7.4.90.0130.00416.52
7.4.80.0110.00519.37
7.4.70.0130.00616.46
7.4.60.0100.00616.49
7.4.50.0050.00316.31
7.4.40.0070.01122.27
7.4.30.0000.02316.36
7.4.00.0060.01215.14
7.3.330.0020.00213.16
7.3.320.0050.00013.32
7.3.310.0070.00016.11
7.3.300.0030.00316.19
7.3.290.0160.00516.28
7.3.280.0070.00916.25
7.3.270.0070.01017.40
7.3.260.0100.01018.24
7.3.250.0080.01016.39
7.3.240.0040.01216.37
7.3.230.0100.01316.46
7.3.210.0150.00616.34
7.3.200.0100.01219.39
7.3.190.0130.01016.20
7.3.180.0110.01116.45
7.3.170.0000.01516.41
7.3.160.0070.01616.60
7.3.120.0060.00814.75
7.2.330.0120.00616.59
7.2.320.0060.00916.63
7.2.310.0110.00816.76
7.2.300.0100.00616.73
7.2.290.0160.00016.66
7.2.00.0000.01619.46
7.1.200.0060.00815.58
7.1.100.4280.01017.98
7.1.70.0040.01217.13
7.1.60.0140.01019.40
7.1.50.0070.01416.89
7.1.00.0070.07022.31
7.0.200.0080.00016.69
7.0.140.0030.07722.21
7.0.60.0300.07020.06
7.0.50.0270.05020.24
7.0.40.0230.08020.03
7.0.30.0370.07020.08
7.0.20.0270.07720.08
7.0.10.0270.07019.98
7.0.00.0300.07320.05
5.6.280.0000.07721.08
5.6.210.0230.08320.48
5.6.200.0270.08021.03
5.6.190.0230.05320.97
5.6.180.0270.05320.98
5.6.170.0400.06320.99
5.6.160.0270.07721.15
5.6.150.0200.09021.00
5.6.140.0200.08020.98
5.6.130.0230.03721.04
5.6.120.0230.06721.00
5.6.110.0200.06320.90
5.6.100.0270.06320.98
5.6.90.0300.07021.02
5.6.80.0200.07020.29
5.6.70.0300.06720.43
5.6.60.0230.08020.38
5.6.50.0200.07020.53
5.6.40.0330.04720.46
5.6.30.0270.05720.45
5.6.20.0200.03720.46
5.6.10.0130.05320.25
5.6.00.0200.06320.48
5.5.350.0270.05720.39
5.5.340.0470.06020.86
5.5.330.0230.07020.99
5.5.320.0300.07320.78
5.5.310.0200.07020.99
5.5.300.0230.07320.88
5.5.290.0200.07320.78
5.5.280.0300.06020.69
5.5.270.0200.08020.80
5.5.260.0200.07320.68
5.5.250.0270.07720.76
5.5.240.0230.06020.30
5.5.230.0170.05720.26
5.5.220.0270.06020.03
5.5.210.0300.06320.29
5.5.200.0430.06320.34
5.5.190.0170.04720.34
5.5.180.0330.05320.19
5.5.160.0100.06320.24
5.5.150.0430.05320.24
5.5.140.0230.06720.16
5.5.130.0230.08020.16
5.5.120.0230.08320.09
5.5.110.0270.07020.09
5.5.100.0270.06020.02
5.5.90.0300.05720.01
5.5.80.0130.05720.11
5.5.70.0400.06320.10
5.5.60.0300.07319.98
5.5.50.0330.06320.04
5.5.40.0270.05020.21
5.5.30.0300.06320.07
5.5.20.0170.05320.06
5.5.10.0170.04720.19
5.5.00.0200.03319.87
5.4.450.0200.05319.24
5.4.440.0400.06019.49
5.4.430.0330.07019.23
5.4.420.0130.05719.51
5.4.410.0330.07319.13
5.4.400.0230.06719.17
5.4.390.0200.07319.20
5.4.380.0230.07019.07
5.4.370.0300.05319.16
5.4.360.0230.06719.04
5.4.350.0270.03719.08
5.4.340.0370.05019.02
5.4.320.0270.07018.91
5.4.310.0230.04319.17
5.4.300.0330.06719.04
5.4.290.0230.05718.91
5.4.280.0270.07318.89
5.4.270.0230.07718.85
5.4.260.0200.03719.07
5.4.250.0300.06019.06
5.4.240.0300.07018.91
5.4.230.0170.07719.07
5.4.220.0230.06719.02
5.4.210.0300.07019.16
5.4.200.0270.06719.19
5.4.190.0230.07719.20
5.4.180.0270.06319.19
5.4.170.0230.07019.11
5.4.160.0130.04019.18
5.4.150.0230.07319.18
5.4.140.0270.05716.33
5.4.130.0230.04316.34
5.4.120.0200.04316.25
5.4.110.0230.06016.51
5.4.100.0300.03716.32
5.4.90.0270.06016.54
5.4.80.0130.04716.36
5.4.70.0200.04716.24
5.4.60.0270.06316.40
5.4.50.0270.05016.39
5.4.40.0070.06016.41
5.4.30.0270.06316.39
5.4.20.0270.05716.33
5.4.10.0200.04016.34
5.4.00.0200.03715.92
5.3.290.0230.06314.73
5.3.280.0400.06014.59
5.3.270.0170.04314.57
5.3.260.0230.03014.70
5.3.250.0100.04014.67
5.3.240.0230.05314.67
5.3.230.0100.04014.42
5.3.220.0100.04014.54
5.3.210.0170.07314.57
5.3.200.0230.03714.59
5.3.190.0170.07714.66
5.3.180.0300.04014.48
5.3.170.0270.03314.66
5.3.160.0200.07314.61
5.3.150.0300.06014.61
5.3.140.0100.07014.57
5.3.130.0330.06314.52
5.3.120.0230.07714.64
5.3.110.0270.06314.46
5.3.100.0230.04314.13
5.3.90.0170.08014.09
5.3.80.0270.05014.08
5.3.70.0170.05014.03
5.3.60.0200.07013.89
5.3.50.0370.08013.92
5.3.40.0300.06014.02
5.3.30.0170.05313.96
5.3.20.0130.03713.75
5.3.10.0270.06313.66
5.3.00.0200.06713.67
5.2.170.0170.04711.25
5.2.160.0230.05011.20
5.2.150.0200.06011.12
5.2.140.0170.03711.26
5.2.130.0070.02711.15
5.2.120.0200.05311.02
5.2.110.0130.02711.19
5.2.100.0130.04711.19
5.2.90.0230.05711.20
5.2.80.0170.06011.20
5.2.70.0200.04311.18
5.2.60.0230.05711.03
5.2.50.0230.05011.03
5.2.40.0170.05710.84
5.2.30.0130.05011.08
5.2.20.0170.05710.86
5.2.10.0170.05010.85
5.2.00.0070.03710.73
5.1.60.0130.03310.03
5.1.50.0200.02710.09
5.1.40.0170.04710.09
5.1.30.0230.04010.40
5.1.20.0200.03710.40
5.1.10.0130.04010.15
5.1.00.0170.04710.12
5.0.50.0100.0378.65
5.0.40.0100.0238.65
5.0.30.0100.0508.65
5.0.20.0070.0408.65
5.0.10.0130.0408.65
5.0.00.0100.0538.65
4.4.90.0070.0378.65
4.4.80.0130.0238.65
4.4.70.0100.0338.65
4.4.60.0070.0278.65
4.4.50.0070.0338.65
4.4.40.0100.0378.65
4.4.30.0070.0238.65
4.4.20.0070.0338.65
4.4.10.0100.0308.65
4.4.00.0100.0438.65
4.3.110.0070.0308.65
4.3.100.0070.0238.65
4.3.90.0130.0308.65
4.3.80.0030.0538.65
4.3.70.0100.0338.65
4.3.60.0100.0308.65
4.3.50.0070.0308.65
4.3.40.0100.0438.65
4.3.30.0030.0338.65
4.3.20.0070.0378.65
4.3.10.0030.0308.65
4.3.00.0100.0278.65

preferences:
38.69 ms | 400 KiB | 5 Q