3v4l.org

run code in 300+ PHP versions simultaneously
<?php function call($o, $a, $r, $context) { $ref = new ReflectionFunction($o); return $ref->invokeArgs($a); } class A { protected $a = 5; public function __invoke() { $f = function () { return $this->a; }; return call($f, array(), array(), isset($this) ? $this : null); } } $a = new A; var_dump($a->foo());

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.0110.00818.55
8.3.50.0160.00721.14
8.3.40.0120.00318.79
8.3.30.0110.00320.34
8.3.20.0040.00420.34
8.3.10.0030.00622.09
8.3.00.0060.00922.39
8.2.180.0150.00916.75
8.2.170.0070.01122.96
8.2.160.0070.00722.22
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0110.00726.16
8.2.120.0040.00420.82
8.2.110.0040.00420.54
8.2.100.0060.00617.91
8.2.90.0030.00619.17
8.2.80.0040.00419.40
8.2.70.0070.00317.50
8.2.60.0000.00817.68
8.2.50.0080.00018.07
8.2.40.0030.00618.22
8.2.30.0040.00419.44
8.2.20.0040.00417.54
8.2.10.0050.00217.68
8.2.00.0070.00417.56
8.1.280.0130.00625.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00323.70
8.1.230.0000.01123.90
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0040.00417.40
8.1.180.0080.00018.88
8.1.170.0040.00418.47
8.1.160.0000.00720.55
8.1.150.0070.00318.50
8.1.140.0000.00717.38
8.1.130.0030.00317.79
8.1.120.0000.00717.41
8.1.110.0000.00817.45
8.1.100.0040.00417.42
8.1.90.0040.00317.47
8.1.80.0050.00217.23
8.1.70.0030.00317.39
8.1.60.0000.00817.50
8.1.50.0000.00817.57
8.1.40.0030.00617.48
8.1.30.0080.00017.66
8.1.20.0060.00317.64
8.1.10.0000.00817.58
8.1.00.0030.00617.46
8.0.300.0060.00318.77
8.0.290.0040.00417.05
8.0.280.0000.00718.40
8.0.270.0070.00017.25
8.0.260.0060.00016.79
8.0.250.0030.00316.87
8.0.240.0040.00416.98
8.0.230.0070.00016.98
8.0.220.0030.00316.89
8.0.210.0000.00716.80
8.0.200.0080.00016.98
8.0.190.0000.00816.92
8.0.180.0000.00716.96
8.0.170.0050.00316.84
8.0.160.0050.00316.84
8.0.150.0000.00716.95
8.0.140.0030.00316.89
8.0.130.0060.00013.23
8.0.120.0030.00616.85
8.0.110.0050.00216.92
8.0.100.0040.00417.01
8.0.90.0040.00416.90
8.0.80.0120.00916.93
8.0.70.0070.00016.89
8.0.60.0070.00016.85
8.0.50.0000.00816.77
8.0.30.0110.00617.03
8.0.20.0130.00617.40
8.0.10.0000.00717.03
8.0.00.0050.01516.88
7.4.330.0060.00015.00
7.4.320.0000.00616.46
7.4.300.0000.00616.50
7.4.290.0040.00416.65
7.4.280.0040.00416.41
7.4.270.0000.00716.63
7.4.260.0030.00313.18
7.4.250.0080.00016.47
7.4.240.0030.00316.46
7.4.230.0030.00316.70
7.4.220.0090.00916.47
7.4.210.0100.00616.55
7.4.200.0030.00316.41
7.4.190.0000.00716.77
7.4.160.0130.00616.55
7.4.150.0200.00317.40
7.4.140.0130.00717.86
7.4.130.0140.00916.55
7.4.120.0110.00816.46
7.4.110.0000.01716.53
7.4.100.0070.01316.46
7.4.90.0060.01516.68
7.4.80.0040.01519.39
7.4.70.0030.01416.43
7.4.60.0070.01016.43
7.4.50.0000.00916.49
7.4.40.0040.01522.77
7.4.30.0080.00816.57
7.4.00.0070.00814.97
7.3.330.0000.00513.30
7.3.320.0000.00713.30
7.3.310.0050.00316.33
7.3.300.0070.00016.19
7.3.290.0110.00316.36
7.3.280.0050.01116.27
7.3.270.0130.00317.40
7.3.260.0090.00916.43
7.3.250.0080.01116.39
7.3.240.0060.01216.34
7.3.230.0150.00316.39
7.3.210.0060.01216.33
7.3.200.0030.01519.39
7.3.190.0150.00316.34
7.3.180.0090.00616.35
7.3.170.0100.00716.41
7.3.160.0060.01016.29
7.3.120.0050.01314.87
7.3.110.0100.00814.71
7.3.100.0080.01014.72
7.3.90.0080.00614.82
7.3.80.0120.00514.88
7.3.70.0100.00314.64
7.3.60.0080.00514.76
7.3.50.0020.01514.73
7.3.40.0030.01214.85
7.3.30.0020.01214.60
7.3.20.0100.00716.43
7.3.10.0060.00616.52
7.3.00.0060.00916.53
7.2.330.0070.01016.58
7.2.320.0110.00616.66
7.2.310.0080.01516.43
7.2.300.0130.00316.57
7.2.290.0100.00616.68
7.2.250.0100.00714.64
7.2.240.0020.01814.97
7.2.230.0120.00414.96
7.2.220.0090.00714.76
7.2.210.0070.00814.69
7.2.200.0050.00714.94
7.2.190.0070.01014.92
7.2.180.0070.00414.92
7.2.170.0050.01114.74
7.2.160.0060.00915.02
7.2.150.0060.00616.93
7.2.140.0040.01216.80
7.2.130.0080.00716.68
7.2.120.0070.00816.78
7.2.110.0050.00916.82
7.2.100.0050.00916.71
7.2.90.0080.00816.75
7.2.80.0060.01116.95
7.2.70.0070.00616.89
7.2.60.0070.00616.76
7.2.50.0100.00616.85
7.2.40.0100.00716.97
7.2.30.0100.00516.87
7.2.20.0040.00816.69
7.2.10.0070.00816.75
7.2.00.0010.01317.44
7.1.330.0030.01315.80
7.1.320.0030.01215.63
7.1.310.0060.00915.60
7.1.300.0110.00515.58
7.1.290.0050.01115.60
7.1.280.0050.00815.60
7.1.270.0050.01215.57
7.1.260.0130.00415.65
7.1.250.0000.01115.60
7.1.240.0090.00915.76
7.1.230.0030.01015.72
7.1.220.0040.01115.73
7.1.210.0060.00915.75
7.1.200.0030.01015.65
7.1.190.0070.00715.71
7.1.180.0060.00915.61
7.1.170.0030.01215.58
7.1.160.0040.00415.46
7.1.150.0110.00715.57
7.1.140.0030.01015.59
7.1.130.0060.01215.62
7.1.120.0070.01015.43
7.1.110.0080.00415.79
7.1.100.0030.01116.71
7.1.90.0030.01015.44
7.1.80.0030.01015.68
7.1.70.0050.00516.17
7.1.60.0050.01117.45
7.1.50.0030.01316.23
7.1.40.0090.00315.52
7.1.30.0090.00615.64
7.1.20.0070.01015.58
7.1.10.0070.01115.36
7.1.00.0050.04318.96
7.0.330.0030.01015.40
7.0.320.0070.00715.22
7.0.310.0000.01315.42
7.0.300.0070.00715.09
7.0.290.0110.00715.36
7.0.280.0110.00015.11
7.0.270.0000.01315.13
7.0.260.0000.01715.00
7.0.250.0070.00315.35
7.0.240.0100.00315.32
7.0.230.0090.00615.30
7.0.220.0060.00815.10
7.0.210.0030.00615.28
7.0.200.0040.00615.82
7.0.190.0060.00315.32
7.0.180.0100.00715.04
7.0.170.0030.01415.43
7.0.160.0100.00315.43
7.0.150.0080.00815.20
7.0.140.0070.03618.57
7.0.130.0040.01115.27
7.0.120.0060.01215.29
7.0.110.0040.00815.29
7.0.100.0030.01015.10
7.0.90.0060.00915.34
7.0.80.0060.00615.09
7.0.70.0020.04518.53
7.0.60.0050.04418.65
7.0.50.0050.04818.60
7.0.40.0060.03816.80
7.0.30.0050.04816.74
7.0.20.0020.04916.76
7.0.10.0080.04216.77
7.0.00.0070.03016.73
5.6.400.0000.01114.32
5.6.390.0180.00014.54
5.6.380.0100.00314.27
5.6.370.0100.00314.27
5.6.360.0100.00314.41
5.6.350.0040.01414.23
5.6.340.0060.00514.13
5.6.330.0030.01513.99
5.6.320.0060.00614.30
5.6.310.0070.00314.11
5.6.300.0060.00613.92
5.6.290.0040.01114.18
5.6.280.0030.04317.71
5.6.270.0030.01214.50
5.6.260.0040.01114.27
5.6.250.0030.01214.19
5.6.240.0030.00914.43
5.6.230.0030.01014.41
5.6.220.0050.04517.41
5.6.210.0070.04417.54
5.6.200.0080.04317.47
5.6.190.0070.03817.63
5.6.180.0070.04517.60
5.6.170.0070.04217.68
5.6.160.0030.04917.67
5.6.150.0050.03717.63
5.6.140.0070.04517.87
5.6.130.0050.04817.63
5.6.120.0080.02517.76
5.6.110.0030.03217.73
5.6.100.0080.03617.49
5.6.90.0030.04917.53
5.6.80.0030.04717.37
5.6.70.0010.02817.24
5.6.60.0060.04417.27
5.6.50.0070.04317.19
5.6.40.0050.03017.44
5.6.30.0050.02117.35
5.6.20.0070.03217.20
5.6.10.0000.03117.48
5.6.00.0060.02817.24
5.5.380.0070.00713.88
5.5.370.0030.00614.33
5.5.360.0050.04917.25
5.5.350.0050.03317.37
5.5.340.0000.05417.56
5.5.330.0090.04417.60
5.5.320.0110.03917.51
5.5.310.0060.04317.48
5.5.300.0050.04017.45
5.5.290.0070.04717.47
5.5.280.0030.04417.63
5.5.270.0030.04517.59
5.5.260.0050.02717.58
5.5.250.0080.04117.41
5.5.240.0070.04017.10
5.5.230.0050.04417.27
5.5.220.0060.03817.04
5.5.210.0070.04317.28
5.5.200.0000.02917.24
5.5.190.0030.03217.33
5.5.180.0080.02317.22
5.5.170.0030.01013.87
5.5.160.0020.03217.23
5.5.150.0030.02416.96
5.5.140.0120.01817.17
5.5.130.0080.02017.27
5.5.120.0030.02417.25
5.5.110.0050.02417.25
5.5.100.0050.02317.21
5.5.90.0090.03617.01
5.5.80.0020.02517.13
5.5.70.0070.03317.12
5.5.60.0050.03317.15
5.5.50.0120.03816.96
5.5.40.0000.04417.02
5.5.30.0020.02417.16
5.5.20.0060.02216.95
5.5.10.0080.03517.10
5.5.00.0100.02017.11
5.4.450.0020.04515.86
5.4.440.0030.03815.87
5.4.430.0060.04215.78
5.4.420.0020.02915.71
5.4.410.0030.03615.76
5.4.400.0050.04015.71
5.4.390.0020.02915.62
5.4.380.0020.04315.67
5.4.370.0020.04215.71
5.4.360.0020.03015.62
5.4.350.0090.02015.62
5.4.340.0050.03015.68
5.4.330.0000.01012.20
5.4.320.0020.02515.64
5.4.310.0070.01915.63
5.4.300.0030.02615.64
5.4.290.0050.02015.69
5.4.280.0000.02415.67
5.4.270.0030.02315.66
5.4.260.0030.02315.62
5.4.250.0050.02315.64
5.4.240.0030.02815.69
5.4.230.0070.04215.62
5.4.220.0070.03815.66
5.4.210.0050.03015.55
5.4.200.0030.02415.62
5.4.190.0030.02315.66
5.4.180.0020.03315.52
5.4.170.0040.02415.65
5.4.160.0050.02015.61
5.4.150.0070.03015.61
5.4.140.0000.02314.22
5.4.130.0030.01814.35
5.4.120.0020.02014.33
5.4.110.0050.02014.29
5.4.100.0020.02014.36
5.4.90.0020.02014.32
5.4.80.0020.02214.36
5.4.70.0000.02214.31
5.4.60.0020.02214.34
5.4.50.0030.02714.28
5.4.40.0030.02014.29
5.4.30.0050.02914.26
5.4.20.0030.01814.26
5.4.10.0050.01814.32
5.4.00.0000.03414.03
5.3.290.0040.02413.40
5.3.280.0050.03513.43
5.3.270.0030.02213.38
5.3.260.0050.02313.46
5.3.250.0000.02113.39
5.3.240.0030.01813.39
5.3.230.0030.01813.43
5.3.220.0020.02113.42
5.3.210.0030.01913.39
5.3.200.0020.01713.35
5.3.190.0020.02213.44
5.3.180.0040.03213.42
5.3.170.0020.04213.38
5.3.160.0030.02013.41
5.3.150.0030.02013.44
5.3.140.0040.03413.41
5.3.130.0050.02013.34
5.3.120.0020.02013.37
5.3.110.0020.02213.36
5.3.100.0060.02013.15
5.3.90.0000.03013.07
5.3.80.0030.02013.10
5.3.70.0030.02013.13
5.3.60.0080.01313.16
5.3.50.0050.01813.04
5.3.40.0030.01813.04
5.3.30.0030.02013.07
5.3.20.0000.02312.94
5.3.10.0020.02112.93
5.3.00.0030.01712.89
5.2.170.0000.03012.32
5.2.160.0000.03012.32
5.2.150.0030.02712.32
5.2.140.0000.03712.32
5.2.130.0000.02312.32
5.2.120.0000.02712.32
5.2.110.0000.02312.32
5.2.100.0000.03312.32
5.2.90.0000.03012.32
5.2.80.0000.04012.32
5.2.70.0030.05012.32
5.2.60.0030.06012.32
5.2.50.0000.06312.32
5.2.40.0030.06012.32
5.2.30.0000.06712.32
5.2.20.0100.04712.32
5.2.10.0070.05712.32
5.2.00.0100.05312.32
5.1.60.0030.03312.32
5.1.50.0030.05312.32
5.1.40.0070.05012.32
5.1.30.0030.06012.32
5.1.20.0030.05712.32
5.1.10.0030.05712.32
5.1.00.0000.04312.32
5.0.50.0070.03712.32
5.0.40.0100.04012.32
5.0.30.0000.05712.32
5.0.20.0030.03012.32
5.0.10.0070.03312.32
5.0.00.0070.06012.32
4.4.90.0070.03012.32
4.4.80.0030.02712.32
4.4.70.0070.03312.32
4.4.60.0000.02712.32
4.4.50.0030.02312.32
4.4.40.0000.05712.32
4.4.30.0030.03312.32
4.4.20.0070.03312.32
4.4.10.0000.02312.32
4.4.00.0000.05712.32
4.3.110.0000.03712.32
4.3.100.0000.02012.32
4.3.90.0070.02712.32
4.3.80.0000.04012.32
4.3.70.0000.03312.32
4.3.60.0000.02712.32
4.3.50.0000.02012.32
4.3.40.0070.05012.32
4.3.30.0030.03712.32
4.3.20.0030.02712.32
4.3.10.0000.03712.32
4.3.00.0000.03712.32

preferences:
33.92 ms | 401 KiB | 5 Q