3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $hello; public function __construct() { $this->hello = function(){ echo 'hello from callable'; }; } public function __call($method, $args) { if(is_callable(array($this, $method))) { return call_user_func_array($this->$method, $args); } } } $foo = new Foo(); $foo->hello();

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.50
8.3.50.0080.01121.97
8.3.40.0090.00619.05
8.3.30.0150.00019.06
8.3.20.0050.00320.29
8.3.10.0060.00323.66
8.3.00.0000.01020.64
8.2.180.0130.00716.88
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0090.00926.16
8.2.120.0060.00822.27
8.2.110.0030.00620.38
8.2.100.0080.00317.90
8.2.90.0040.00418.22
8.2.80.0040.00418.05
8.2.70.0090.00017.50
8.2.60.0000.01117.80
8.2.50.0000.00818.07
8.2.40.0050.00318.34
8.2.30.0020.00518.13
8.2.20.0000.00717.54
8.2.10.0000.00817.61
8.2.00.0000.00717.75
8.1.280.0110.00325.92
8.1.270.0050.00323.83
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00622.20
8.1.230.0040.00720.95
8.1.220.0000.00917.74
8.1.210.0040.00418.86
8.1.200.0060.00317.35
8.1.190.0080.00017.63
8.1.180.0060.00318.10
8.1.170.0000.01020.47
8.1.160.0080.00022.02
8.1.150.0020.00518.56
8.1.140.0000.00717.39
8.1.130.0020.00517.83
8.1.120.0050.00317.51
8.1.110.0000.00717.46
8.1.100.0000.01017.50
8.1.90.0000.00817.50
8.1.80.0030.00517.50
8.1.70.0000.00717.39
8.1.60.0030.00717.59
8.1.50.0040.00417.45
8.1.40.0040.00417.57
8.1.30.0030.00617.58
8.1.20.0000.00817.71
8.1.10.0030.00617.64
8.1.00.0040.00417.56
8.0.300.0030.00320.09
8.0.290.0000.00717.18
8.0.280.0030.00318.36
8.0.270.0070.00017.27
8.0.260.0000.00816.86
8.0.250.0030.00316.97
8.0.240.0030.00316.83
8.0.230.0030.00316.95
8.0.220.0030.00316.80
8.0.210.0030.00316.79
8.0.200.0050.00216.99
8.0.190.0040.00417.00
8.0.180.0040.00416.91
8.0.170.0050.00316.85
8.0.160.0050.00316.96
8.0.150.0000.00716.83
8.0.140.0070.00016.85
8.0.130.0050.00013.38
8.0.120.0040.00416.89
8.0.110.0080.00016.91
8.0.100.0080.00016.87
8.0.90.0040.00416.91
8.0.80.0110.00416.89
8.0.70.0030.00516.77
8.0.60.0060.00316.77
8.0.50.0000.00816.92
8.0.30.0080.01117.26
8.0.20.0080.01017.40
8.0.10.0040.00416.81
8.0.00.0090.01316.82
7.4.330.0050.00015.09
7.4.320.0060.00016.58
7.4.300.0060.00016.51
7.4.290.0000.00716.41
7.4.280.0030.00316.64
7.4.270.0030.00316.39
7.4.260.0030.00316.51
7.4.250.0000.00816.55
7.4.240.0030.00316.52
7.4.230.0000.00716.33
7.4.220.0070.01116.55
7.4.210.0080.00916.56
7.4.200.0070.00016.53
7.4.190.0030.00316.31
7.4.160.0130.01016.46
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0080.00916.54
7.4.120.0120.00516.56
7.4.110.0070.01016.35
7.4.100.0070.01016.58
7.4.90.0130.00316.61
7.4.80.0140.00316.65
7.4.70.0090.00616.37
7.4.60.0070.01016.54
7.4.50.0060.00316.24
7.4.40.0070.00722.77
7.4.30.0090.00916.32
7.4.00.0070.00715.02
7.3.330.0060.00013.34
7.3.320.0000.00513.30
7.3.310.0000.00716.34
7.3.300.0070.00016.41
7.3.290.0100.00316.38
7.3.280.0090.00816.35
7.3.270.0120.00617.40
7.3.260.0110.00716.38
7.3.250.0160.00516.59
7.3.240.0070.01016.30
7.3.230.0070.01116.39
7.3.210.0060.01216.45
7.3.200.0090.00919.39
7.3.190.0090.01316.48
7.3.180.0110.00616.48
7.3.170.0030.01316.53
7.3.160.0120.00316.41
7.3.120.0030.00614.59
7.3.10.0060.00316.27
7.3.00.0100.00316.57
7.2.330.0110.00816.75
7.2.320.0090.00916.59
7.2.310.0100.01316.51
7.2.300.0120.00616.57
7.2.290.0050.01016.77
7.2.130.0070.00716.92
7.2.120.0050.00816.66
7.2.110.0040.00716.79
7.2.100.0070.00516.74
7.2.90.0100.00516.75
7.2.80.0060.00916.60
7.2.70.0050.00916.82
7.2.60.0050.01016.93
7.2.50.0050.01017.00
7.2.40.0050.01016.87
7.2.30.0060.00417.02
7.2.20.0080.00916.86
7.2.10.0070.00716.96
7.2.00.0050.00617.85
7.1.250.0050.00515.89
7.1.240.0030.01015.61
7.1.230.0110.00415.75
7.1.220.0110.00015.82
7.1.210.0100.00315.82
7.1.200.0070.00715.68
7.1.190.0040.00915.87
7.1.180.0000.01215.72
7.1.170.0070.00315.76
7.1.160.0040.00815.68
7.1.150.0030.01015.89
7.1.140.0060.00915.97
7.1.130.0040.00415.83
7.1.120.0040.01116.03
7.1.110.0060.00615.95
7.1.100.0080.00517.04
7.1.90.0090.00315.84
7.1.80.0030.01015.59
7.1.70.0060.00516.61
7.1.60.0070.00516.59
7.1.50.0090.00316.42
7.1.40.0050.00716.27
7.1.30.0060.00616.26
7.1.20.0100.00516.18
7.1.10.0020.01316.11
7.1.00.0050.00516.30
7.0.320.0030.01015.39
7.0.310.0030.01015.14
7.0.300.0000.01215.21
7.0.290.0000.01415.57
7.0.280.0090.00315.52
7.0.270.0030.00815.22
7.0.260.0030.00915.36
7.0.250.0030.00915.57
7.0.240.0030.01215.41
7.0.230.0080.00415.32
7.0.220.0060.00615.25
7.0.210.0100.00315.46
7.0.200.0030.00816.16
7.0.190.0020.00615.93
7.0.180.0060.00515.83
7.0.170.0040.00815.99
7.0.160.0030.00715.56
7.0.150.0070.00715.74
7.0.140.0070.00415.83
7.0.130.0010.00615.92
7.0.120.0040.00715.93
7.0.110.0040.00415.92
7.0.100.0020.00915.96
7.0.90.0040.00715.88
7.0.80.0050.00615.99
7.0.70.0060.00316.03
7.0.60.0040.00415.77
7.0.50.0050.00816.00
7.0.40.0080.00314.36
7.0.30.0020.00914.21
7.0.20.0050.00714.40
7.0.10.0030.00814.27
7.0.00.0060.00614.26
5.6.380.0000.01414.20
5.6.370.0040.01114.30
5.6.360.0100.00614.59
5.6.350.0060.00914.36
5.6.340.0090.00314.70
5.6.330.0100.00314.66
5.6.320.0040.00714.61
5.6.310.0030.00614.58
5.6.300.0050.03817.75
5.6.290.0020.02717.57
5.6.280.0070.02617.79
5.6.270.0040.02617.83
5.6.260.0050.02317.68
5.6.250.0070.02517.71
5.6.240.0050.02417.56
5.6.230.0060.02417.71
5.6.220.0030.03917.64
5.6.210.0050.02217.57
5.6.200.0070.02217.72
5.6.190.0000.02817.58
5.6.180.0050.02517.54
5.6.170.0090.02717.61
5.6.160.0030.03317.67
5.6.150.0070.02317.58
5.6.140.0080.02117.67
5.6.130.0050.02417.58
5.6.120.0050.04817.58
5.6.110.0030.02617.69
5.6.100.0040.02617.67
5.6.90.0100.03517.65
5.6.80.0030.02317.27
5.6.70.0050.02517.42
5.6.60.0120.03117.22
5.6.50.0050.02417.20
5.6.40.0090.02117.22
5.6.30.0060.02117.32
5.6.20.0040.02417.26
5.6.10.0140.01617.16
5.6.00.0060.02217.32
5.5.380.0040.02414.47
5.5.370.0040.02514.37
5.5.360.0020.02414.23
5.5.350.0030.03714.37
5.5.340.0030.02914.65
5.5.330.0050.02914.64
5.5.320.0000.02714.61
5.5.310.0030.02414.77
5.5.300.0020.02314.59
5.5.290.0030.02314.66
5.5.280.0050.02514.66
5.5.270.0040.02414.62
5.5.260.0050.02414.45
5.5.250.0030.03014.57
5.5.240.0080.02614.24
5.5.230.0070.01814.18
5.5.220.0070.02914.10
5.5.210.0020.03214.09
5.5.200.0060.01914.22
5.5.190.0050.02114.23
5.5.180.0000.02614.22
5.5.170.0100.00314.13
5.5.160.0050.02014.23
5.5.150.0020.03914.23
5.5.140.0030.02414.08
5.5.130.0030.02714.29
5.5.120.0050.02114.19
5.5.110.0050.02114.22
5.5.100.0080.02114.18
5.5.90.0000.02614.12
5.5.80.0050.02513.99
5.5.70.0000.02514.15
5.5.60.0050.02114.22
5.5.50.0020.02014.27
5.5.40.0060.04214.13
5.5.30.0050.02014.04
5.5.20.0020.02614.36
5.5.10.0040.02414.17
5.5.00.0030.02914.08
5.4.450.0050.04415.43
5.4.440.0000.02515.35
5.4.430.0000.02615.26
5.4.420.0050.02615.13
5.4.410.0030.02315.25
5.4.400.0050.03815.10
5.4.390.0040.02214.85
5.4.380.0030.02714.97
5.4.370.0070.03815.11
5.4.360.0030.02215.13
5.4.350.0050.02114.98
5.4.340.0040.02315.05
5.4.330.0050.00510.80
5.4.320.0040.02214.94
5.4.310.0020.04215.15
5.4.300.0020.02915.18
5.4.290.0000.03214.91
5.4.280.0030.02315.04
5.4.270.0060.01715.02
5.4.260.0020.02415.09
5.4.250.0050.02315.00
5.4.240.0000.02515.07
5.4.230.0020.02615.07
5.4.220.0050.01915.01
5.4.210.0020.02315.15
5.4.200.0030.02715.12
5.4.190.0050.02015.00
5.4.180.0000.02515.24
5.4.170.0030.02114.88
5.4.160.0060.02015.07
5.4.150.0050.02014.99
5.4.140.0050.01914.04
5.4.130.0040.02313.92
5.4.120.0030.02213.71
5.4.110.0010.02613.98
5.4.100.0050.03714.10
5.4.90.0020.02213.80
5.4.80.0050.01813.75
5.4.70.0020.02313.76
5.4.60.0030.02113.60
5.4.50.0000.02513.86
5.4.40.0030.02113.63
5.4.30.0050.01913.63
5.4.20.0030.02313.82
5.4.10.0020.02313.72
5.4.00.0030.02413.44
5.3.290.0030.02513.01
5.3.280.0040.01912.89
5.3.270.0000.02412.95
5.3.260.0080.01612.83
5.3.250.0080.02612.96
5.3.240.0040.02612.82
5.3.230.0030.02212.83
5.3.220.0050.02112.81
5.3.210.0050.02112.73
5.3.200.0040.02112.82
5.3.190.0070.01812.79
5.3.180.0020.02312.91
5.3.170.0020.02312.89
5.3.160.0020.02312.80
5.3.150.0050.01912.83
5.3.140.0080.01812.77
5.3.130.0020.02312.86
5.3.120.0030.01912.88
5.3.110.0050.02012.87
5.3.100.0030.02712.89
5.3.90.0040.04112.79
5.3.80.0030.03912.74
5.3.70.0000.02312.91
5.3.60.0020.02012.89
5.3.50.0020.02612.87
5.3.40.0020.02312.86
5.3.30.0030.01812.88
5.3.20.0060.02012.90
5.3.10.0020.02312.68
5.3.00.0070.03312.79
5.2.170.0000.02012.52
5.2.160.0050.01312.52
5.2.150.0030.01612.52
5.2.140.0020.01812.52
5.2.130.0060.01312.52
5.2.120.0000.02012.52
5.2.110.0020.01712.52
5.2.100.0050.02112.52
5.2.90.0070.01812.52
5.2.80.0010.01912.52
5.2.70.0020.02712.52
5.2.60.0030.01912.52
5.2.50.0010.02912.52
5.2.40.0050.03212.52
5.2.30.0060.02512.52
5.2.20.0020.01712.52
5.2.10.0060.01312.52
5.2.00.0000.01712.52
5.1.60.0040.01212.52
5.1.50.0040.01312.52
5.1.40.0030.01612.52
5.1.30.0030.01612.52
5.1.20.0010.01512.52
5.1.10.0060.01212.52
5.1.00.0050.01312.52
5.0.50.0020.01612.52
5.0.40.0040.01312.52
5.0.30.0020.01812.52
5.0.20.0020.01512.52
5.0.10.0020.01212.52
5.0.00.0020.03212.52
4.4.90.0000.01512.52
4.4.80.0030.02112.52
4.4.70.0030.02012.52
4.4.60.0000.01212.52
4.4.50.0000.01112.52
4.4.40.0000.01612.52
4.4.30.0030.00612.52
4.4.20.0030.00912.52
4.4.10.0020.01712.52
4.4.00.0020.01512.52
4.3.110.0020.01712.52
4.3.100.0020.01012.52
4.3.90.0030.00812.52
4.3.80.0050.02512.52
4.3.70.0010.01212.52
4.3.60.0020.01512.52
4.3.50.0000.01512.52
4.3.40.0000.02812.52
4.3.30.0000.01212.52
4.3.20.0010.01012.52
4.3.10.0050.00812.52
4.3.00.0020.01012.52

preferences:
40.94 ms | 401 KiB | 5 Q