3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function __call($x, $y){ echo "wat"; } static function __callStatic($x, $y){ echo "wut"; } function m(){ $fn = ['A', 'test']; call_user_func($fn); $fn(); } } (new A())->m();

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.5.30.0100.00817.46
8.5.20.0100.01020.09
8.5.10.0090.00720.10
8.5.00.0100.01120.09
8.4.180.0100.01219.83
8.4.170.0130.01220.50
8.4.160.0070.00421.98
8.4.150.0060.00616.95
8.4.140.0130.00817.58
8.4.130.0080.00818.07
8.4.120.0020.00724.10
8.4.110.0070.00422.23
8.4.100.0120.00817.67
8.4.90.0130.00818.63
8.4.80.0050.00418.02
8.4.70.0060.01018.27
8.4.60.0150.00619.16
8.4.50.0090.00818.44
8.4.40.0170.00318.12
8.4.30.0100.01017.82
8.4.20.0130.00717.90
8.4.10.0040.00417.82
8.3.300.0110.00820.82
8.3.290.0100.01020.76
8.3.280.0120.00718.34
8.3.270.0100.01016.68
8.3.260.0100.00816.64
8.3.250.0090.00918.75
8.3.240.0120.00717.17
8.3.230.0150.00616.70
8.3.220.0060.00317.30
8.3.210.0120.00716.57
8.3.200.0130.00516.72
8.3.190.0090.00717.24
8.3.180.0120.00718.53
8.3.170.0070.01020.62
8.3.160.0090.00917.25
8.3.150.0110.00716.99
8.3.140.0000.00716.71
8.3.130.0110.00716.50
8.3.120.0090.00019.05
8.3.110.0030.00620.94
8.3.100.0050.00324.06
8.3.90.0080.00026.77
8.3.80.0060.00318.30
8.3.70.0120.00916.50
8.3.60.0000.01416.75
8.3.50.0120.00522.09
8.3.40.0070.01118.68
8.3.30.0150.00718.72
8.3.20.0040.00420.18
8.3.10.0080.00020.48
8.3.00.0030.00618.64
8.2.300.0110.01021.91
8.2.290.0140.00520.45
8.2.280.0080.01020.18
8.2.270.0100.00717.12
8.2.260.0000.00816.98
8.2.250.0060.00316.56
8.2.240.0030.00618.90
8.2.230.0000.00822.58
8.2.220.0080.00037.54
8.2.210.0070.01026.77
8.2.200.0080.00018.66
8.2.190.0040.01116.63
8.2.180.0080.00818.29
8.2.170.0070.00722.96
8.2.160.0130.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00619.35
8.2.120.0070.00026.35
8.2.110.0070.00319.27
8.2.100.0090.00317.80
8.2.90.0080.00019.28
8.2.80.0050.00317.97
8.2.70.0050.00317.75
8.2.60.0040.00417.93
8.2.50.0050.00318.09
8.2.40.0040.00420.64
8.2.30.0040.00419.23
8.2.20.0080.00017.69
8.2.10.0040.00418.10
8.2.00.0000.00818.10
8.1.340.0130.00817.57
8.1.330.0110.00921.61
8.1.320.0110.00816.20
8.1.310.0130.00316.63
8.1.300.0030.00618.25
8.1.290.0060.00330.84
8.1.280.0080.00825.92
8.1.270.0070.00023.88
8.1.260.0050.00328.09
8.1.250.0030.00528.09
8.1.240.0030.00621.88
8.1.230.0040.00817.52
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0040.00417.10
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0060.00318.46
8.1.160.0040.00422.55
8.1.150.0040.00418.80
8.1.140.0040.00419.51
8.1.130.0030.00317.64
8.1.120.0050.00217.37
8.1.110.0000.00717.27
8.1.100.0050.00217.34
8.1.90.0040.00417.36
8.1.80.0070.00017.36
8.1.70.0070.00017.46
8.1.60.0030.00617.56
8.1.50.0030.00517.44
8.1.40.0000.00717.40
8.1.30.0030.00517.53
8.1.20.0000.00817.48
8.1.10.0050.00317.55
8.1.00.0000.00717.54
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00718.40
8.0.270.0000.00717.23
8.0.260.0060.00017.14
8.0.250.0080.00016.89
8.0.240.0000.00816.81
8.0.230.0030.00316.83
8.0.220.0030.00516.88
8.0.210.0050.00316.88
8.0.200.0030.00316.87
8.0.190.0040.00416.81
8.0.180.0040.00416.88
8.0.170.0050.00216.93
8.0.160.0040.00416.95
8.0.150.0000.00716.83
8.0.140.0000.00716.75
8.0.130.0050.00013.33
8.0.120.0040.00416.82
8.0.110.0030.00616.75
8.0.100.0000.00716.75
8.0.90.0040.00416.77
8.0.80.0030.01216.94
8.0.70.0030.00516.94
8.0.60.0000.00816.86
8.0.50.0040.00416.88
8.0.30.0130.00617.13
8.0.20.0100.00917.40
8.0.10.0030.00516.82
8.0.00.0120.00916.80
7.4.330.0000.00516.71
7.4.320.0070.00016.57
7.4.300.0000.00616.48
7.4.290.0000.00816.52
7.4.280.0080.00016.61
7.4.270.0040.00416.55
7.4.260.0080.00016.50
7.4.250.0060.00316.37
7.4.240.0040.00316.56
7.4.230.0000.00716.58
7.4.220.0080.01216.52
7.4.210.0050.00916.59
7.4.200.0070.00016.67
7.4.160.0130.00316.26
7.4.150.0090.00917.40
7.4.140.0070.01117.86
7.4.130.0090.00916.59
7.4.120.0090.00816.43
7.4.110.0100.00716.59
7.4.100.0120.00916.33
7.4.90.0060.01116.63
7.4.80.0080.01119.39
7.4.70.0080.00816.42
7.4.60.0040.01416.34
7.4.50.0070.01016.17
7.4.40.0120.00916.69
7.4.30.0140.00716.56
7.4.00.0040.01114.80
7.3.330.0000.00613.35
7.3.320.0060.00013.30
7.3.310.0040.00416.21
7.3.300.0060.00016.32
7.3.290.0040.00416.23
7.3.280.0060.01016.28
7.3.270.0080.01117.40
7.3.260.0140.00516.70
7.3.250.0070.01116.37
7.3.240.0140.00816.50
7.3.230.0100.01316.39
7.3.210.0100.01016.56
7.3.200.0100.01316.56
7.3.190.0090.00916.38
7.3.180.0080.01416.54
7.3.170.0140.01016.46
7.3.160.0060.01616.40
7.2.330.0090.00916.74
7.2.320.0130.01016.62
7.2.310.0100.00716.47
7.2.300.0100.00716.28
7.2.290.0040.01116.63
7.2.60.0070.00716.66
7.2.00.0000.01219.45
7.1.200.0070.00415.55
7.1.100.0060.00317.99
7.1.70.0030.00616.91
7.1.60.0140.01019.27
7.1.50.0090.01216.63
7.1.00.0000.07722.36
7.0.200.0000.00916.75
7.0.60.0300.05319.86
7.0.50.0100.04017.85
7.0.40.0070.06020.27
7.0.30.0400.07720.26
7.0.20.0100.04720.23
7.0.10.0070.08020.20
7.0.00.0030.04320.16
5.6.280.0000.07721.05
5.6.210.0100.06320.70
5.6.200.0030.06718.24
5.6.190.0070.07020.61
5.6.180.0400.06320.61
5.6.170.0200.04020.53
5.6.160.0130.07720.71
5.6.150.0100.08018.17
5.6.140.0100.04318.15
5.6.130.0030.04018.24
5.6.120.0030.04321.05
5.6.110.0100.04721.01
5.6.100.0130.07021.04
5.6.90.0130.08021.01
5.6.80.0030.06320.27
5.5.350.0330.08020.36
5.5.340.0030.05318.02
5.5.330.0130.04720.21
5.5.320.0300.05720.27
5.5.310.0330.07020.33
5.5.300.0000.04317.98
5.5.290.0170.06017.99
5.5.280.0000.04320.65
5.5.270.0000.09320.73
5.5.260.0170.07720.80
5.5.250.0030.09020.62
5.5.240.0170.06720.25

preferences:
82.13 ms | 1532 KiB | 5 Q