3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ public function __call($method, $args) { if(is_callable(array($this, $method))) { return call_user_func_array($this->$method, $args); } // else throw exception } } $foo = new Foo; $foo->cb = function($who) { return "Hello $who"; }; echo $foo->cb('World');

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.0100.01016.75
8.3.50.0120.01222.17
8.3.40.0070.01118.81
8.3.30.0070.00718.66
8.3.20.0070.00020.34
8.3.10.0060.00323.34
8.3.00.0040.00417.50
8.2.180.0120.00618.29
8.2.170.0110.00422.96
8.2.160.0070.00719.11
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0000.00917.63
8.2.110.0030.00922.12
8.2.100.0090.00317.93
8.2.90.0000.00819.22
8.2.80.0030.00517.97
8.2.70.0000.00817.48
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0000.00819.32
8.2.30.0080.00020.59
8.2.20.0040.00417.73
8.2.10.0070.00018.04
8.2.00.0040.00418.05
8.1.280.0030.01725.92
8.1.270.0040.00423.96
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0050.00522.61
8.1.230.0120.00017.73
8.1.220.0060.00317.74
8.1.210.0000.01018.77
8.1.200.0000.00917.25
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0040.00418.91
8.1.160.0070.00022.02
8.1.150.0040.00418.89
8.1.140.0000.00819.50
8.1.130.0030.00317.69
8.1.120.0040.00417.30
8.1.110.0000.00817.35
8.1.100.0040.00417.47
8.1.90.0030.00317.36
8.1.80.0000.00817.37
8.1.70.0000.00717.36
8.1.60.0050.00217.46
8.1.50.0060.00317.52
8.1.40.0000.00717.52
8.1.30.0040.00417.64
8.1.20.0060.00317.65
8.1.10.0060.00317.59
8.1.00.0030.00517.41
8.0.300.0000.00818.77
8.0.290.0040.00416.88
8.0.280.0030.00318.46
8.0.270.0030.00317.21
8.0.260.0030.00317.26
8.0.250.0030.00616.96
8.0.240.0000.00716.87
8.0.230.0020.00516.86
8.0.220.0070.00016.95
8.0.210.0000.00716.89
8.0.200.0000.00816.93
8.0.190.0050.00316.93
8.0.180.0000.00716.80
8.0.170.0040.00416.86
8.0.160.0040.00416.89
8.0.150.0040.00416.79
8.0.140.0000.00716.76
8.0.130.0060.00013.28
8.0.120.0000.00716.84
8.0.110.0000.00816.90
8.0.100.0040.00416.89
8.0.90.0000.00716.79
8.0.80.0070.00716.87
8.0.70.0080.00016.92
8.0.60.0040.00416.89
8.0.50.0070.00016.88
8.0.30.0090.00717.02
8.0.20.0110.00817.40
8.0.10.0000.00816.89
8.0.00.0090.00816.75
7.4.330.0050.00015.08
7.4.320.0000.00616.61
7.4.300.0060.00016.52
7.4.290.0000.00716.60
7.4.280.0060.00316.50
7.4.270.0040.00216.57
7.4.260.0030.00316.58
7.4.250.0070.00016.56
7.4.240.0020.00516.59
7.4.230.0040.00416.47
7.4.220.0120.00616.63
7.4.210.0090.00716.51
7.4.200.0070.00016.32
7.4.160.0040.01816.38
7.4.150.0140.00317.40
7.4.140.0070.01117.86
7.4.130.0070.01116.52
7.4.120.0030.01416.44
7.4.110.0120.01216.57
7.4.100.0120.00916.42
7.4.90.0090.00916.50
7.4.80.0070.01019.39
7.4.70.0070.01016.36
7.4.60.0060.00916.58
7.4.50.0040.00416.69
7.4.40.0150.00316.56
7.4.30.0140.00316.63
7.4.00.0070.00714.78
7.3.330.0000.00513.22
7.3.320.0000.00513.29
7.3.310.0030.00316.34
7.3.300.0000.00716.22
7.3.290.0030.00316.37
7.3.280.0090.01116.37
7.3.270.0090.00917.40
7.3.260.0100.00716.44
7.3.250.0100.00916.50
7.3.240.0130.00816.44
7.3.230.0130.00316.63
7.3.210.0120.00916.48
7.3.200.0100.00716.24
7.3.190.0090.00916.55
7.3.180.0130.00316.27
7.3.170.0130.00316.33
7.3.160.0120.00416.57
7.3.10.0030.01316.58
7.3.00.0030.00916.65
7.2.330.0120.00616.83
7.2.320.0090.00916.64
7.2.310.0060.01016.78
7.2.300.0100.00716.63
7.2.290.0060.01116.41
7.2.130.0060.00617.10
7.2.120.0030.01016.93
7.2.110.0000.01117.15
7.2.100.0050.00516.60
7.2.90.0030.00617.00
7.2.80.0030.00916.56
7.2.70.0060.00317.16
7.2.60.0070.00417.05
7.2.50.0030.01017.15
7.2.40.0000.01216.75
7.2.30.0030.01017.11
7.2.20.0060.00916.86
7.2.10.0060.00916.85
7.2.00.0030.00818.05
7.1.250.0040.00815.89
7.1.200.0130.00615.63
7.1.100.0040.00717.71
7.1.70.0070.00017.30
7.1.60.0060.01919.43
7.1.50.0140.01116.68
7.1.00.0030.07722.51
7.0.200.0000.00816.76
7.0.60.0130.07019.95
7.0.50.0030.05017.82
7.0.40.0100.03720.23
7.0.30.0330.06020.06
7.0.20.0300.06720.23
7.0.10.0330.05720.05
7.0.00.0030.06320.14
5.6.280.0070.03021.09
5.6.210.0070.08020.52
5.6.200.0070.04718.18
5.6.190.0100.09020.55
5.6.180.0000.04320.57
5.6.170.0170.04020.48
5.6.160.0000.09320.55
5.6.150.0130.04718.18
5.6.140.0070.05018.18
5.6.130.0070.04718.15
5.6.120.0130.07721.04
5.6.110.0070.07720.98
5.6.100.0070.08321.05
5.6.90.0070.07321.00
5.6.80.0130.07320.39
5.6.70.4470.03720.54
5.5.350.0100.06320.32
5.5.340.0000.05318.05
5.5.330.0070.08720.40
5.5.320.0100.03320.35
5.5.310.0400.07020.29
5.5.300.0130.07017.95
5.5.290.0000.08717.98
5.5.280.0000.04320.88
5.5.270.0070.05020.87
5.5.260.0100.05020.88
5.5.250.0100.08020.78
5.5.240.0130.07020.12
5.4.450.0800.06319.62
5.4.440.0970.06319.70
5.4.430.0800.07319.33
5.4.420.0870.05319.19
5.4.410.0830.07319.43
5.4.400.0830.05719.15
5.4.390.0830.07018.92
5.4.380.0670.08019.06
5.4.370.1200.05319.24
5.4.360.0900.07019.12
5.4.350.0870.06019.38
5.4.340.0830.07719.15
5.4.320.0700.08318.88
5.4.310.0900.05319.00
5.4.300.0600.05719.41
5.4.290.0630.08719.25
5.4.280.0730.07018.98
5.4.270.0870.05019.38
5.4.260.0730.05719.20
5.4.250.0870.07318.87
5.4.240.0630.05718.97
5.4.230.0870.05319.14
5.4.220.1000.05719.14
5.4.210.0800.06018.86
5.4.200.0630.06019.30
5.4.190.0630.05719.14
5.4.180.0770.05718.99
5.4.170.1000.06319.02
5.4.160.0800.06018.98
5.4.150.0900.05718.81
5.4.140.0800.06716.54
5.4.130.1130.05016.50
5.4.120.0900.06716.37
5.4.110.1000.06716.44
5.4.100.0870.05016.45
5.4.90.0800.06016.28
5.4.80.0670.05716.59
5.4.70.0700.05316.55
5.4.60.0600.05016.60
5.4.50.0600.05716.64
5.4.40.0900.05316.59
5.4.30.0870.05016.48
5.4.20.0730.06316.57
5.4.10.0670.05316.59
5.4.00.0670.05016.14

preferences:
65.01 ms | 401 KiB | 5 Q