3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { private $baz = 'tab'; } $accessor = function () { return $this->baz; }; $writer = function ($bar) { $this->baz = $bar; }; $bar = new Bar(); $accessor = Closure::bind($accessor, $bar, 'Bar'); $writer = Closure::bind($writer, $bar, 'Bar'); var_dump($accessor()); $writer('taz'); var_dump($bar);

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.0000.01416.75
8.3.50.0130.00416.46
8.3.40.0130.00318.86
8.3.30.0140.00018.68
8.3.20.0040.00418.78
8.3.10.0040.00420.41
8.3.00.0110.00017.46
8.2.180.0120.00916.32
8.2.170.0060.01018.67
8.2.160.0040.01522.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00020.01
8.2.110.0030.00622.00
8.2.100.0080.00417.89
8.2.90.0030.00618.03
8.2.80.0030.00617.97
8.2.70.0050.00317.92
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0040.00417.97
8.2.30.0070.00019.43
8.2.20.0040.00417.57
8.2.10.0030.00517.61
8.2.00.0050.00317.72
8.1.280.0120.00625.92
8.1.270.0000.00922.18
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0140.00723.97
8.1.230.0100.00318.99
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0000.00918.83
8.1.150.0040.00418.56
8.1.140.0050.00217.38
8.1.130.0070.00017.37
8.1.120.0070.00017.47
8.1.110.0000.00717.38
8.1.100.0030.00517.40
8.1.90.0040.00417.48
8.1.80.0040.00417.38
8.1.70.0000.00717.42
8.1.60.0050.00317.66
8.1.50.0000.00717.47
8.1.40.0040.00417.44
8.1.30.0040.00417.61
8.1.20.0080.00017.63
8.1.10.0040.00417.60
8.1.00.0070.00017.54
8.0.300.0080.00021.56
8.0.290.0080.00016.75
8.0.280.0040.00418.39
8.0.270.0000.00716.68
8.0.260.0030.00316.76
8.0.250.0040.00416.77
8.0.240.0070.00016.93
8.0.230.0030.00316.93
8.0.220.0040.00216.86
8.0.210.0030.00316.77
8.0.200.0060.00016.83
8.0.190.0000.00816.98
8.0.180.0000.00716.88
8.0.170.0060.00316.90
8.0.160.0000.00716.94
8.0.150.0000.00716.87
8.0.140.0030.00716.89
8.0.130.0060.00013.29
8.0.120.0080.00016.80
8.0.110.0000.01016.72
8.0.100.0040.00416.84
8.0.90.0000.00716.95
8.0.80.0070.01416.96
8.0.70.0030.00516.74
8.0.60.0040.00416.73
8.0.50.0070.00016.91
8.0.30.0110.00817.03
8.0.20.0100.01216.88
8.0.10.0040.00416.80
8.0.00.0170.01716.83
7.4.330.0020.00212.90
7.4.320.0050.00316.61
7.4.300.0000.00616.57
7.4.290.0000.00716.62
7.4.280.0060.00316.58
7.4.270.0000.00716.62
7.4.260.0030.00313.19
7.4.250.0030.00516.45
7.4.240.0000.00716.43
7.4.230.0000.00716.51
7.4.220.0090.00916.70
7.4.210.0080.00716.55
7.4.200.0000.00716.41
7.4.190.0000.00816.50
7.4.160.0030.01416.26
7.4.150.0090.01216.43
7.4.140.0070.01016.45
7.4.130.0130.00616.65
7.4.120.0050.01216.45
7.4.110.0000.01816.38
7.4.100.0100.00716.43
7.4.90.0060.01616.53
7.4.80.0060.01316.50
7.4.70.0130.00316.54
7.4.60.0030.01416.35
7.4.50.0030.00516.53
7.4.40.0030.00616.61
7.4.30.0040.01216.61
7.4.00.0040.01314.93
7.3.330.0000.00613.30
7.3.320.0050.00013.38
7.3.310.0030.00316.20
7.3.300.0030.00316.28
7.3.290.0140.00016.31
7.3.280.0080.00816.33
7.3.270.0170.00016.23
7.3.260.0070.01216.46
7.3.250.0110.01016.37
7.3.240.0060.01116.39
7.3.230.0060.01016.51
7.3.210.0050.01116.22
7.3.200.0040.01719.39
7.3.190.0090.00916.30
7.3.180.0100.00716.44
7.3.170.0060.01016.40
7.3.160.0000.01616.32
7.3.120.0080.00814.74
7.3.110.0090.00615.04
7.3.100.0030.01414.70
7.3.90.0100.00314.77
7.3.80.0000.01114.73
7.3.70.0040.01114.72
7.3.60.0040.01114.70
7.3.50.0120.00014.91
7.3.40.0090.00314.61
7.3.30.0030.00714.72
7.3.20.0100.00316.70
7.3.10.0090.00316.66
7.3.00.0070.00716.45
7.2.330.0130.00416.69
7.2.320.0100.00716.30
7.2.310.0100.01016.73
7.2.300.0060.00916.51
7.2.290.0160.00016.69
7.2.250.0090.00914.95
7.2.240.0060.01214.98
7.2.230.0000.01514.59
7.2.220.0060.00314.73
7.2.210.0060.00915.18
7.2.200.0000.01014.93
7.2.190.0120.00314.68
7.2.180.0000.01115.16
7.2.170.0060.00914.89
7.2.60.0000.01216.73
7.2.00.0030.01019.33
7.1.330.0120.00315.86
7.1.320.0070.01015.54
7.1.310.0070.01115.95
7.1.300.0040.01115.91
7.1.290.0040.00815.80
7.1.280.0060.00315.56
7.1.270.0070.00315.55
7.1.260.0100.00715.80
7.1.200.0040.00416.00
7.1.100.0000.00817.98
7.1.70.0000.00717.32
7.1.60.0080.00317.26
7.1.50.0060.01217.00
7.1.40.0060.00916.39
7.1.30.0030.01016.70
7.1.20.0040.01116.55
7.1.10.0000.00816.68
7.1.00.0030.00616.60
7.0.200.0000.01216.70
7.0.190.0030.00816.56
7.0.180.0100.00616.08
7.0.170.0000.01016.30
7.0.160.0000.00816.27
7.0.150.0070.00316.35
7.0.140.0000.00716.35
7.0.130.0040.00416.57
7.0.120.0030.00616.63
7.0.110.0040.00716.44
7.0.100.0000.01516.43
7.0.90.0000.00816.56
7.0.80.0000.01016.66
7.0.70.0070.00416.32
7.0.60.0000.00816.20
7.0.50.0040.00416.22
7.0.40.0000.00715.25
7.0.30.0040.00415.25
7.0.20.0030.00615.25
7.0.10.0000.00715.25
7.0.00.0060.00315.25
5.6.300.0000.04420.58
5.6.290.0000.04420.65
5.6.280.0130.04620.92
5.6.270.0100.05321.10
5.6.260.0030.06121.00
5.6.250.0040.03920.88
5.6.240.0030.08821.07
5.6.230.0000.06020.81
5.6.220.0030.04420.82
5.6.210.0000.04321.06
5.6.200.0170.04720.95
5.6.190.0130.04221.06
5.6.180.0000.04520.93
5.6.170.0100.03520.84
5.6.160.0060.04121.06
5.6.150.0030.04020.83
5.6.140.0000.05420.86
5.6.130.0000.06721.04
5.6.120.0070.04220.87
5.6.110.0000.04420.84
5.6.100.0060.04120.95
5.6.90.0060.04420.97
5.6.80.0000.04220.43
5.6.70.0030.04120.36
5.6.60.0100.04220.24
5.6.50.0060.07720.38
5.6.40.0030.03620.33
5.6.30.0030.07820.38
5.6.20.0060.04220.35
5.6.10.0230.04020.31
5.6.00.0040.03920.18
5.5.380.0030.04417.54
5.5.370.0000.04717.65
5.5.360.0030.04017.52
5.5.350.0030.05917.53
5.5.340.0000.04318.07
5.5.330.0000.04217.71
5.5.320.0030.04618.14
5.5.310.0000.04218.01
5.5.300.0030.04018.10
5.5.290.0070.04318.09
5.5.280.0130.05018.03
5.5.270.0030.08518.03
5.5.260.0070.03918.18
5.5.250.0060.04117.85
5.5.240.0070.03417.51
5.5.230.0030.04617.44
5.5.220.0000.04317.38
5.5.210.0070.03417.44
5.5.200.0030.07817.06
5.5.190.0000.05317.21
5.5.180.0030.04117.21
5.5.160.0030.04117.39
5.5.150.0000.04717.43
5.5.140.0000.04417.45
5.5.130.0030.03817.19
5.5.120.0070.05417.46
5.5.110.0000.04417.35
5.5.100.0000.04317.29
5.5.90.0030.03917.09
5.5.80.0030.03617.11
5.5.70.0160.03517.08
5.5.60.0000.05417.42
5.5.50.0160.04416.94
5.5.40.0030.03617.34
5.5.30.0030.03917.33
5.5.20.0070.04016.92
5.5.10.0170.04017.27
5.5.00.0000.04417.26
5.4.450.0070.04019.31
5.4.440.0030.04019.25
5.4.430.0100.08819.53
5.4.420.0070.06219.31
5.4.410.0070.04619.29
5.4.400.0060.03919.21
5.4.390.0030.04119.24
5.4.380.0000.04019.09
5.4.370.0030.04518.95
5.4.360.0000.07418.99
5.4.350.0030.08518.92
5.4.340.0060.03618.98
5.4.320.0030.04319.19
5.4.310.0060.03618.95
5.4.300.0030.03819.07
5.4.290.0030.04019.11
5.4.280.0000.04519.21
5.4.270.0030.03819.16
5.4.260.0030.04018.98
5.4.250.0000.04018.97
5.4.240.0030.03919.10
5.4.230.0000.04019.06
5.4.220.0000.04618.90
5.4.210.0030.03719.06
5.4.200.0030.03718.89
5.4.190.0000.04419.07
5.4.180.0070.04319.13
5.4.170.0060.03818.91
5.4.160.0070.04419.05
5.4.150.0030.03819.24
5.4.140.0030.03416.83
5.4.130.0030.03316.73
5.4.120.0030.03316.77
5.4.110.0170.03316.54
5.4.100.0060.03416.82
5.4.90.0000.03916.80
5.4.80.0000.03816.76
5.4.70.0000.04116.77
5.4.60.0000.04616.58
5.4.50.0060.03116.45
5.4.40.0030.03416.73
5.4.30.0030.03916.46
5.4.20.0070.03016.38
5.4.10.0000.04016.46
5.4.00.0000.04316.21
5.3.290.0030.03715.25
5.3.280.0030.03815.25
5.3.270.0000.04015.25
5.3.260.0000.04415.25
5.3.250.0030.03515.25
5.3.240.0060.03615.25
5.3.230.0000.04115.25
5.3.220.0030.03715.25
5.3.210.0100.03215.25
5.3.200.0030.03815.25
5.3.190.0030.03515.25
5.3.180.0000.03815.25
5.3.170.0030.08415.25
5.3.160.0000.04315.25
5.3.150.0070.03415.25
5.3.140.0030.03915.25
5.3.130.0030.03815.25
5.3.120.0070.07715.25
5.3.110.0030.04115.25
5.3.100.0000.04715.25
5.3.90.0030.03515.25
5.3.80.0030.03715.25
5.3.70.0000.04115.25
5.3.60.0070.03115.25
5.3.50.0000.03915.25
5.3.40.0100.03015.25
5.3.30.0060.04115.25
5.3.20.0000.06315.25
5.3.10.0000.03615.25
5.3.00.0000.04115.25
5.2.170.0030.02715.25
5.2.160.0000.03915.25
5.2.150.0030.02815.25
5.2.140.0000.03015.25
5.2.130.0000.03415.25
5.2.120.0000.03415.25
5.2.110.0070.02315.25
5.2.100.0130.04415.25
5.2.90.0030.05115.25
5.2.80.0030.05615.25
5.2.70.0030.05915.25
5.2.60.0000.03715.25
5.2.50.0030.02915.25
5.2.40.0000.03215.25
5.2.30.0000.03515.25
5.2.20.0000.03215.25
5.2.10.0070.02415.25
5.2.00.0000.03115.25
5.1.60.0040.02915.25
5.1.50.0030.02415.25
5.1.40.0100.02515.25
5.1.30.0030.02715.25
5.1.20.0030.02315.25
5.1.10.0030.02415.25
5.1.00.0000.03015.25
5.0.50.0000.02215.25
5.0.40.0030.01915.25
5.0.30.0030.03315.25
5.0.20.0000.02515.25
5.0.10.0070.03615.25
5.0.00.0000.03515.25
4.4.90.0030.01315.25
4.4.80.0000.02315.25
4.4.70.0040.01415.25
4.4.60.0000.01815.25
4.4.50.0000.01615.25
4.4.40.0000.02715.25
4.4.30.0000.01715.25
4.4.20.0060.01115.25
4.4.10.0000.01815.25
4.4.00.0030.02315.25
4.3.110.0000.01615.25
4.3.100.0030.01315.25
4.3.90.0030.01415.25
4.3.80.0000.03315.25
4.3.70.0000.01515.25
4.3.60.0060.01115.25
4.3.50.0000.03215.25
4.3.40.0000.02615.25
4.3.30.0030.01415.25
4.3.20.0000.01815.25
4.3.10.0030.01515.25
4.3.00.0000.01715.25

preferences:
48.29 ms | 401 KiB | 5 Q