3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $a; public function __call($method, $args) { call_user_func_array([$this->a, $method], $args); } public function foo() { print 123; } } $a = new test(); $b = new test(); $b->a = $a; $b->foo(); $b->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.70.0150.00618.39
8.3.60.0000.01418.56
8.3.50.0070.01221.99
8.3.40.0070.00718.82
8.3.30.0100.00319.02
8.3.20.0040.00420.38
8.3.10.0040.00421.86
8.3.00.0040.00419.05
8.2.180.0110.00716.88
8.2.170.0070.00722.96
8.2.160.0040.01119.32
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0030.00519.76
8.2.110.0060.00322.24
8.2.100.0000.01117.97
8.2.90.0080.00019.25
8.2.80.0040.00417.97
8.2.70.0050.00517.59
8.2.60.0050.00317.93
8.2.50.0060.00518.07
8.2.40.0030.00519.95
8.2.30.0040.00417.94
8.2.20.0040.00417.80
8.2.10.0000.00818.05
8.2.00.0040.00417.78
8.1.280.0060.00925.92
8.1.270.0040.00418.73
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0100.00023.96
8.1.230.0030.00719.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0030.00617.25
8.1.180.0080.00018.10
8.1.170.0030.00618.40
8.1.160.0070.00022.04
8.1.150.0040.00418.89
8.1.140.0070.00017.53
8.1.130.0040.00417.75
8.1.120.0000.00717.48
8.1.110.0040.00417.41
8.1.100.0050.00217.48
8.1.90.0040.00417.40
8.1.80.0040.00417.48
8.1.70.0040.00417.41
8.1.60.0000.00817.50
8.1.50.0030.00617.52
8.1.40.0050.00317.41
8.1.30.0000.00817.61
8.1.20.0030.00617.71
8.1.10.0040.00417.50
8.1.00.0060.00317.50
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0070.00018.45
8.0.270.0040.00417.27
8.0.260.0000.00617.28
8.0.250.0070.00016.95
8.0.240.0030.00317.01
8.0.230.0040.00417.03
8.0.220.0030.00316.86
8.0.210.0000.00716.98
8.0.200.0070.00016.93
8.0.190.0060.00317.02
8.0.180.0030.00516.92
8.0.170.0030.00617.00
8.0.160.0070.00017.01
8.0.150.0000.00716.91
8.0.140.0000.00716.97
8.0.130.0000.00713.44
8.0.120.0050.00316.89
8.0.110.0030.00516.97
8.0.100.0030.00516.96
8.0.90.0080.00017.06
8.0.80.0110.01116.93
8.0.70.0000.00717.01
8.0.60.0000.00717.04
8.0.50.0000.00716.84
8.0.30.0050.01617.18
8.0.20.0150.00517.40
8.0.10.0040.00416.90
8.0.00.0140.00416.91
7.4.330.0000.00615.08
7.4.320.0070.00016.52
7.4.300.0030.00316.50
7.4.290.0070.00016.43
7.4.280.0080.00316.57
7.4.270.0040.00416.65
7.4.260.0050.00516.48
7.4.250.0060.00316.46
7.4.240.0000.00716.58
7.4.230.0000.00716.39
7.4.220.0070.01016.61
7.4.210.0130.00616.55
7.4.200.0070.00016.34
7.4.160.0160.00016.63
7.4.150.0070.01117.40
7.4.140.0110.00717.86
7.4.130.0110.00916.54
7.4.120.0080.00916.58
7.4.110.0140.00916.60
7.4.100.0070.01416.45
7.4.90.0030.01416.50
7.4.80.0070.01019.39
7.4.70.0120.00616.32
7.4.60.0100.01316.41
7.4.50.0000.00816.48
7.4.40.0060.01016.68
7.4.30.0130.00616.75
7.4.00.0040.01214.92
7.3.330.0000.00613.19
7.3.320.0020.00213.22
7.3.310.0030.00316.17
7.3.300.0000.00616.38
7.3.290.0090.00616.38
7.3.280.0140.00216.33
7.3.270.0190.00317.40
7.3.260.0160.00416.47
7.3.250.0150.00216.54
7.3.240.0100.00716.30
7.3.230.0090.00916.39
7.3.210.0130.00316.49
7.3.200.0060.01119.39
7.3.190.0030.01316.38
7.3.180.0030.01216.61
7.3.170.0090.00916.27
7.3.160.0070.01016.42
7.3.120.0080.00914.71
7.3.110.0050.01114.93
7.3.100.0090.00714.85
7.3.90.0050.01014.75
7.3.80.0060.00514.92
7.3.70.0100.00714.65
7.3.60.0060.00814.72
7.3.50.0040.00814.89
7.3.40.0050.01214.84
7.3.30.0090.00514.74
7.3.20.0090.00416.49
7.3.10.0050.00716.56
7.3.00.0060.00816.71
7.2.330.0180.00516.52
7.2.320.0140.00316.66
7.2.310.0110.00716.86
7.2.300.0060.01016.80
7.2.290.0090.00916.52
7.2.250.0060.01014.67
7.2.240.0060.00814.81
7.2.230.0060.00914.97
7.2.220.0090.00515.08
7.2.210.0060.00814.97
7.2.200.0100.00615.13
7.2.190.0030.00915.05
7.2.180.0080.00714.91
7.2.170.0070.00914.90
7.2.160.0060.00814.83
7.2.150.0070.00917.01
7.2.140.0070.00717.05
7.2.130.0090.00716.88
7.2.120.0100.00716.86
7.2.110.0040.01116.92
7.2.100.0050.00816.84
7.2.90.0030.00917.00
7.2.80.0040.00816.85
7.2.70.0050.00916.95
7.2.60.0060.00716.97
7.2.50.0010.01216.78
7.2.40.0050.00916.94
7.2.30.0040.00917.10
7.2.20.0030.01017.00
7.2.10.0040.00916.90
7.2.00.0040.00917.57
7.1.330.0070.00815.61
7.1.320.0060.00915.70
7.1.310.0050.00815.64
7.1.300.0070.00715.66
7.1.290.0080.00615.72
7.1.280.0060.00615.70
7.1.270.0050.00815.71
7.1.260.0060.00715.64
7.1.250.0100.00315.68
7.1.200.0040.00815.80
7.1.100.0030.00717.92
7.1.70.0000.00816.79
7.1.60.0070.01719.46
7.1.50.0070.01416.92
7.1.00.0030.07722.43
7.0.200.0000.00716.93
7.0.140.0000.04322.10
7.0.60.0100.06719.90
7.0.50.0070.08317.87
7.0.40.0030.04320.26
7.0.30.0230.08320.23
7.0.20.0400.04720.24
7.0.10.0070.08020.23
7.0.00.0170.07720.16
5.6.280.0030.07321.14
5.6.210.0070.03720.56
5.6.200.0130.07318.22
5.6.190.0070.04720.46
5.6.180.0300.04020.39
5.6.170.0270.05020.48
5.6.160.0070.04320.46
5.6.150.0100.04718.18
5.6.140.0130.06718.14
5.6.130.0130.07718.18
5.6.120.0170.04721.06
5.6.110.0030.08021.01
5.6.100.0000.05021.04
5.6.90.0030.08321.01
5.6.80.0100.07720.41
5.5.350.3100.03020.39
5.5.340.0100.06717.97
5.5.330.0000.04320.43
5.5.320.2330.04320.32
5.5.310.0300.08320.30
5.5.300.0030.07317.92
5.5.290.0030.08017.97
5.5.280.0100.06320.69
5.5.270.0170.07320.83
5.5.260.0170.07320.87
5.5.250.0070.06720.70
5.5.240.0030.06020.19
5.4.450.0530.05719.34
5.4.440.0130.05719.31
5.4.430.0170.04719.55
5.4.420.0070.06019.36
5.4.410.0170.04719.57
5.4.400.0100.05719.02
5.4.390.0070.06018.79
5.4.380.0170.06018.50
5.4.370.0200.05018.70
5.4.360.0070.05718.70
5.4.350.0070.06318.75
5.4.340.0200.05018.72
5.4.320.0130.06018.56
5.4.310.0130.05718.72
5.4.300.0230.06318.61
5.4.290.0100.07018.89
5.4.280.0130.05718.55
5.4.270.0130.05318.59
5.4.260.0130.05318.76
5.4.250.0100.06718.72
5.4.240.0200.04718.71
5.4.230.0170.04718.68
5.4.220.0230.04718.57
5.4.210.0200.05018.75
5.4.200.0130.05016.59
5.4.190.0170.05318.75
5.4.180.0170.05318.55
5.4.170.0270.04718.76
5.4.160.0170.05318.78
5.4.150.0200.04718.50
5.4.140.0230.06016.43
5.4.130.0130.05316.21
5.4.120.0200.06016.33
5.4.110.0170.04716.32
5.4.100.0370.02716.30
5.4.90.1600.04316.44
5.4.80.0170.05316.26
5.4.70.0200.04716.19
5.4.60.0030.06016.26
5.4.50.0130.05316.32
5.4.40.0200.05016.25
5.4.30.0070.05716.40
5.4.20.0100.05716.23
5.4.10.0100.05016.40
5.4.00.0130.04715.75
5.3.290.0100.05714.66
5.3.280.0100.05714.73
5.3.270.0300.04314.70
5.3.260.0130.06014.73
5.3.250.0130.05014.71
5.3.240.0100.06314.70
5.3.230.0200.05314.82
5.3.220.0130.05714.77
5.3.210.0070.05714.70
5.3.200.0070.07714.61
5.3.190.0200.04314.75
5.3.180.0200.06314.61
5.3.170.0270.05714.67
5.3.160.0100.07314.78
5.3.150.0230.06014.59
5.3.140.0200.06714.72
5.3.130.0100.06314.67
5.3.120.0070.06314.64
5.3.110.0130.06014.54
5.3.100.0200.04714.14
5.3.90.0170.05314.05
5.3.80.0200.04714.08
5.3.70.0300.06014.13
5.3.60.0130.06714.00
5.3.50.0130.06313.98
5.3.40.0170.05313.95
5.3.30.0200.06713.96
5.3.20.0170.05313.75
5.3.10.0170.04713.88
5.3.00.0130.05313.74
5.2.170.0130.05011.20
5.2.160.0170.05311.16
5.2.150.0270.03011.19
5.2.140.0100.04011.24
5.2.130.0200.03711.21
5.2.120.0070.04711.21
5.2.110.0130.03711.17
5.2.100.0170.03311.23
5.2.90.0170.04011.30
5.2.80.0230.03711.21
5.2.70.0100.05011.16
5.2.60.0130.04311.25
5.2.50.0070.04311.07
5.2.40.0130.04011.10
5.2.30.0100.04311.09
5.2.20.0170.03711.14
5.2.10.0200.03710.96
5.2.00.0070.04710.77
5.1.60.0100.03310.04
5.1.50.0130.03310.07
5.1.40.0070.03310.01
5.1.30.0130.03310.39
5.1.20.0100.03710.37
5.1.10.0100.03710.07
5.1.00.0070.04010.15
5.0.50.0100.0238.57
5.0.40.0070.0308.50
5.0.30.0100.0438.39
5.0.20.0070.0338.38
5.0.10.0130.0208.36
5.0.00.0070.0538.28
4.4.90.0070.0305.89
4.4.80.0030.0275.98
4.4.70.0070.0305.96
4.4.60.0070.0235.98
4.4.50.0030.0275.88
4.4.40.0070.0375.88
4.4.30.0030.0235.96
4.4.20.0130.0175.95
4.4.10.0030.0275.94
4.4.00.0070.0405.95
4.3.110.0070.0235.82
4.3.100.0030.0235.88
4.3.90.0070.0205.89
4.3.80.0070.0335.80
4.3.70.0030.0235.79
4.3.60.0070.0205.82
4.3.50.0070.0235.78
4.3.40.0070.0405.75
4.3.30.0030.0234.56
4.3.20.0000.0274.57
4.3.10.0100.0174.61
4.3.00.0070.0238.73

preferences:
43.35 ms | 401 KiB | 5 Q