3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a = 'public'; protected $_b = 'protected'; private $_c = 'private'; } $method = function (){ $GLOBALS['this'] =& $this; $GLOBALS['this'] = new stdClass; var_dump($this, $this->a);}; $a = new A; $method = $method->bindTo($a); $method(); var_dump($this);

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.0110.00318.84
8.3.30.0100.00319.09
8.3.20.0040.00420.20
8.3.10.0080.00021.84
8.3.00.0080.00022.46
8.2.170.0070.00722.96
8.2.160.0100.00320.50
8.2.150.0060.00324.18
8.2.140.0070.00724.66
8.2.130.0070.00026.16
8.2.120.0000.00819.36
8.2.110.0050.00522.13
8.2.100.0090.00319.63
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0080.00017.75
8.2.60.0050.00517.80
8.2.50.0000.00818.07
8.2.40.0000.00818.13
8.2.30.0080.00418.00
8.2.20.0080.00417.72
8.2.10.0050.00319.64
8.2.00.0030.00517.69
8.1.270.0030.00521.96
8.1.260.0100.00626.35
8.1.250.0070.00028.09
8.1.240.0000.00823.82
8.1.230.0030.00818.96
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01017.47
8.1.190.0040.00417.38
8.1.180.0030.00518.10
8.1.170.0030.00518.63
8.1.160.0040.00422.07
8.1.150.0070.00018.64
8.1.140.0070.00017.37
8.1.130.0000.00717.84
8.1.120.0000.00717.43
8.1.110.0000.00817.44
8.1.100.0000.00717.41
8.1.90.0000.00717.41
8.1.80.0000.00717.34
8.1.70.0000.00717.33
8.1.60.0000.00817.50
8.1.50.0000.00817.53
8.1.40.0030.00617.47
8.1.30.0020.00517.69
8.1.20.0030.00517.57
8.1.10.0040.00417.60
8.1.00.0040.00417.54
8.0.300.0000.00818.77
8.0.290.0070.00017.04
8.0.280.0040.00418.46
8.0.270.0000.00717.27
8.0.260.0030.00316.90
8.0.250.0080.00317.08
8.0.240.0000.00916.98
8.0.230.0070.00016.93
8.0.220.0030.00416.90
8.0.210.0000.00716.87
8.0.200.0050.00317.01
8.0.190.0070.00017.07
8.0.180.0040.00416.89
8.0.170.0040.00417.00
8.0.160.0000.00716.94
8.0.150.0030.00616.97
8.0.140.0050.00216.92
8.0.130.0030.00313.36
8.0.120.0050.00316.96
8.0.110.0080.00016.95
8.0.100.0040.00416.90
8.0.90.0000.00816.92
8.0.80.0090.00616.96
8.0.70.0040.00417.00
8.0.60.0030.00517.02
8.0.50.0070.00016.85
8.0.30.0070.01217.10
8.0.20.0110.00917.40
8.0.10.0070.00017.11
8.0.00.0080.01116.65
7.4.330.0030.00315.15
7.4.320.0030.00316.50
7.4.300.0030.00316.52
7.4.290.0050.00316.63
7.4.280.0030.00316.55
7.4.270.0030.00316.55
7.4.260.0000.00716.60
7.4.250.0000.00716.47
7.4.240.0000.00716.58
7.4.230.0000.00716.51
7.4.220.0140.01116.39
7.4.210.0060.00816.63
7.4.200.0000.00716.59
7.4.190.0050.00216.65
7.4.160.0090.00916.55
7.4.150.0060.01217.40
7.4.140.0140.00617.86
7.4.130.0100.00916.52
7.4.120.0110.00616.65
7.4.110.0080.00816.45
7.4.100.0150.00916.68
7.4.90.0110.00616.46
7.4.80.0080.01619.39
7.4.70.0090.00916.48
7.4.60.0050.01316.61
7.4.50.0030.00516.36
7.4.40.0080.00322.77
7.4.30.0100.00616.76
7.4.10.0090.00915.15
7.4.00.0030.01215.05
7.3.330.0030.00313.32
7.3.320.0050.00013.38
7.3.310.0000.00716.31
7.3.300.0000.00716.30
7.3.290.0130.00716.37
7.3.280.0080.00816.36
7.3.270.0170.00017.40
7.3.260.0090.00916.61
7.3.250.0110.00716.45
7.3.240.0000.01616.64
7.3.230.0130.01016.63
7.3.210.0070.01016.43
7.3.200.0150.00619.39
7.3.190.0100.01416.40
7.3.180.0090.00616.49
7.3.170.0060.01016.45
7.3.160.0100.00616.30
7.3.130.0070.01314.78
7.3.120.0080.00814.81
7.3.110.0120.00014.75
7.3.100.0030.01015.02
7.3.90.0080.00414.82
7.3.80.0000.01514.94
7.3.70.0040.00414.68
7.3.60.0000.00914.67
7.3.50.0030.01014.85
7.3.40.0000.01214.82
7.3.30.0110.00014.65
7.3.20.0030.00916.59
7.3.10.0050.00516.71
7.3.00.0040.00716.67
7.2.330.0130.00616.62
7.2.320.0070.01316.70
7.2.310.0130.00416.66
7.2.300.0060.01216.63
7.2.290.0070.01416.42
7.2.260.0110.00714.80
7.2.250.0070.01414.90
7.2.240.0040.01114.94
7.2.230.0080.00315.04
7.2.220.0030.01014.78
7.2.210.0100.00714.93
7.2.200.0000.01115.17
7.2.190.0070.01015.00
7.2.180.0070.01014.99
7.2.170.0060.00614.77
7.2.160.0070.00715.09
7.2.150.0000.01216.91
7.2.140.0140.00016.79
7.2.130.0080.00516.72
7.2.120.0030.00716.90
7.2.110.0050.00816.92
7.2.100.0050.01016.85
7.2.90.0040.01116.89
7.2.80.0070.00516.88
7.2.70.0080.00416.71
7.2.60.0070.00616.84
7.2.50.0040.00816.95
7.2.40.0010.00916.77
7.2.30.0020.01016.85
7.2.20.0080.00616.91
7.2.10.0080.00516.84
7.2.00.0050.00616.92
7.1.330.0030.01015.50
7.1.320.0030.00915.80
7.1.310.0100.00315.80
7.1.300.0100.00315.87
7.1.290.0100.00015.86
7.1.280.0060.00615.89
7.1.270.0060.00315.77
7.1.260.0030.01015.75
7.1.250.0050.00815.77
7.1.240.0040.00815.47
7.1.230.0120.00015.53
7.1.220.0000.00815.66
7.1.210.0050.00515.77
7.1.200.0040.00915.75
7.1.190.0000.00815.48
7.1.180.0040.00815.77
7.1.170.0070.00415.85
7.1.160.0040.01115.53
7.1.150.0080.00415.75
7.1.140.0030.01015.89
7.1.130.0100.00315.74
7.1.120.0030.01015.53
7.1.110.0040.00715.86
7.1.100.0070.00715.73
7.1.90.0030.00715.65
7.1.80.0080.00415.60
7.1.70.0040.00816.40
7.1.60.0030.01217.65
7.1.50.0080.00916.33
7.1.40.0000.01315.74
7.1.30.0030.01015.41
7.1.20.0070.00715.77
7.1.10.0070.00715.52
7.1.00.0040.03919.02
7.0.330.0090.00615.52
7.0.320.0040.00715.52
7.0.310.0040.00715.41
7.0.300.0000.01015.07
7.0.290.0000.01415.34
7.0.280.0060.00615.40
7.0.270.0060.00315.36
7.0.260.0070.00715.46
7.0.250.0000.01215.33
7.0.240.0030.00615.47
7.0.230.0030.00915.30
7.0.220.0030.00915.24
7.0.210.0040.00415.46
7.0.200.0070.00516.03
7.0.190.0080.00415.03
7.0.180.0030.00715.25
7.0.170.0040.01115.36
7.0.160.0000.01315.56
7.0.150.0030.01015.48
7.0.140.0020.03918.78
7.0.130.0000.01215.21
7.0.120.0000.01015.45
7.0.110.0060.00315.46
7.0.100.0110.03917.70
7.0.90.0090.03417.68
7.0.80.0060.04017.63
7.0.70.0080.04317.70
7.0.60.0240.04417.56
7.0.50.0130.04917.89
7.0.40.0030.03016.78
7.0.30.0130.03816.74
7.0.20.0070.03716.68
7.0.10.0050.03416.81
7.0.00.0050.04716.79
5.6.400.0030.00814.71
5.6.390.0000.01414.58
5.6.380.0090.00314.39
5.6.370.0000.00914.48
5.6.360.0060.00914.69
5.6.350.0000.01114.19
5.6.340.0060.00614.49
5.6.330.0140.00014.35
5.6.320.0030.01214.25
5.6.310.0030.01014.67
5.6.300.0060.00914.59
5.6.290.0100.00314.54
5.6.280.0080.03717.65
5.6.270.0090.00014.39
5.6.260.0000.01014.18
5.6.250.0070.04017.53
5.6.240.0070.02417.64
5.6.230.0050.04317.43
5.6.220.0150.02817.54
5.6.210.0110.04117.29
5.6.200.0050.04617.80
5.6.190.0130.02017.65
5.6.180.0100.03417.49
5.6.170.0070.04017.76
5.6.160.0040.04117.89
5.6.150.0050.04017.71
5.6.140.0030.04817.60
5.6.130.0080.02417.74
5.6.120.0030.05117.70
5.6.110.0070.05317.75
5.6.100.0050.04917.73
5.6.90.0100.03817.57
5.6.80.0030.04817.36
5.6.70.0090.03717.52
5.6.60.0130.03617.44
5.6.50.0030.03017.33
5.6.40.0090.04317.22
5.6.30.0030.04517.45
5.6.20.0050.02717.49
5.6.10.0070.04817.24
5.6.00.0070.04417.28
5.5.380.0100.04117.33
5.5.370.0100.04217.48
5.5.360.0050.03317.42
5.5.350.0070.04617.43
5.5.340.0100.02617.55
5.5.330.0120.03817.66
5.5.320.0080.04217.64
5.5.310.0060.03417.51
5.5.300.0070.04517.56
5.5.290.0080.04317.55
5.5.280.0070.03817.58
5.5.270.0100.04217.54
5.5.260.0020.04917.31
5.5.250.0020.03117.36
5.5.240.0080.04017.33
5.5.230.0020.02817.38
5.5.220.0050.04317.18
5.5.210.0020.04517.31
5.5.200.0070.04017.12
5.5.190.0070.02717.09
5.5.180.0050.04117.24
5.5.170.0070.00714.45
5.5.160.0080.03717.01
5.5.150.0050.04417.20
5.5.140.0070.03917.37
5.5.130.0050.04517.30
5.5.120.0060.02617.22
5.5.110.0030.03017.12
5.5.100.0080.04617.13
5.5.90.0020.04817.16
5.5.80.0160.03317.29
5.5.70.0030.04317.14
5.5.60.0090.03917.18
5.5.50.0130.03917.33
5.5.40.0100.04117.15
5.5.30.0070.04217.17
5.5.20.0120.03717.18
5.5.10.0030.04617.07
5.5.00.0080.03817.10
5.4.450.0080.03815.25
5.4.440.0000.03515.05
5.4.430.0050.04315.29
5.4.420.0050.02315.25
5.4.410.0070.04015.14
5.4.400.0050.02315.19
5.4.390.0060.02814.89
5.4.380.0080.03115.09
5.4.370.0080.03714.94
5.4.360.0050.04315.13
5.4.350.0050.02715.20
5.4.340.0100.03715.12
5.4.330.0000.00910.96
5.4.320.0030.03315.06
5.4.310.0050.04014.93
5.4.300.0060.03615.02
5.4.290.0080.03615.07
5.4.280.0090.03714.96
5.4.270.0060.04015.00
5.4.260.0070.03715.01
5.4.250.0020.04515.12
5.4.240.0070.02515.15
5.4.230.0080.03715.06
5.4.220.0030.04015.15
5.4.210.0050.03014.95
5.4.200.0080.03115.04
5.4.190.0060.04014.96
5.4.180.0020.04114.88
5.4.170.0070.02415.08
5.4.160.0120.03514.94
5.4.150.0030.03715.15
5.4.140.0020.03613.64
5.4.130.0070.03813.69
5.4.120.0020.02813.72
5.4.110.0050.03713.69
5.4.100.0040.02513.80
5.4.90.0150.03013.81
5.4.80.0020.03613.70
5.4.70.0000.03013.74
5.4.60.0080.03213.84
5.4.50.0070.02313.77
5.4.40.0080.02513.78
5.4.30.0030.04013.81
5.4.20.0100.03813.71
5.4.10.0080.04113.77
5.4.00.0050.04013.32
5.3.290.0100.04012.62
5.3.280.0050.03212.53
5.3.270.0090.03812.58
5.3.260.0090.04112.64
5.3.250.0040.04412.67
5.3.240.0100.02312.56
5.3.230.0070.02812.56
5.3.220.0020.02912.52
5.3.210.0090.03812.48
5.3.200.0030.04412.49
5.3.190.0070.03612.54
5.3.180.0060.02812.61
5.3.170.0050.03312.56
5.3.160.0060.02812.46
5.3.150.0000.04412.57
5.3.140.0090.04212.60
5.3.130.0080.03512.49
5.3.120.0050.04012.40
5.3.110.0070.04312.53
5.3.100.0070.03812.16
5.3.90.0070.03312.25
5.3.80.0080.03812.17
5.3.70.0070.03712.15
5.3.60.0050.04312.22
5.3.50.0030.02812.12
5.3.40.0080.03512.24
5.3.30.0030.04212.18
5.3.20.0030.03912.03
5.3.10.0050.03111.91
5.3.00.0000.04411.92
5.2.170.0030.04711.04
5.2.160.0070.06011.07
5.2.150.0000.05311.14
5.2.140.0070.05711.22
5.2.130.0030.04311.18
5.2.120.0070.06011.11
5.2.110.0030.03311.00
5.2.100.0100.04711.16
5.2.90.0030.06711.01
5.2.80.0030.06011.11
5.2.70.0130.05011.14
5.2.60.0030.05311.07
5.2.50.0100.06011.06
5.2.40.0000.04010.98
5.2.30.0100.04310.87
5.2.20.0170.05010.89
5.2.10.0070.05710.72
5.2.00.0070.04710.61
5.1.60.0070.05010.05
5.1.50.0030.0509.84
5.1.40.0070.05310.05
5.1.30.0100.05010.36
5.1.20.0100.05310.21
5.1.10.0070.04010.10
5.1.00.0000.05710.15
5.0.50.0030.0478.63
5.0.40.0070.0408.44
5.0.30.0000.0708.43
5.0.20.0030.0278.43
5.0.10.0070.0408.43
5.0.00.0070.0608.43
4.4.90.0030.0238.43
4.4.80.0030.0208.43
4.4.70.0030.0138.43
4.4.60.0070.0178.43
4.4.50.0070.0278.43
4.4.40.0030.0508.43
4.4.30.0030.0338.43
4.4.20.0000.0338.43
4.4.10.0000.0208.43
4.4.00.0070.0508.43
4.3.110.0070.0178.43
4.3.100.0000.0338.43
4.3.90.0030.0338.43
4.3.80.0000.0538.43
4.3.70.0030.0338.43
4.3.60.0000.0408.43
4.3.50.0030.0238.43
4.3.40.0030.0438.43
4.3.30.0030.0338.43
4.3.20.0000.0308.43
4.3.10.0030.0338.43
4.3.00.0030.0338.43

preferences:
52.18 ms | 400 KiB | 5 Q