3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function ddd() { echo "dddd", "\n"; } } $d = new a(); call_user_func(array($d, 'test')); class b { private function ddd() { echo "dddd", "\n"; } } $e = new b(); call_user_func(array($e, 'test'));

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.0070.01116.75
8.3.50.0040.01116.38
8.3.40.0040.01118.68
8.3.30.0060.00918.63
8.3.20.0050.00320.20
8.3.10.0050.00323.48
8.3.00.0090.00023.52
8.2.180.0150.00618.41
8.2.170.0180.00022.96
8.2.160.0100.00320.46
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00422.26
8.2.120.0040.00426.35
8.2.110.0030.00620.52
8.2.100.0040.00817.72
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0000.00918.10
8.2.40.0030.00522.34
8.2.30.0050.00319.14
8.2.20.0000.00817.96
8.2.10.0000.00718.10
8.2.00.0070.00018.11
8.1.280.0140.00325.92
8.1.270.0080.00023.79
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.56
8.1.230.0040.00819.04
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0090.00019.05
8.1.150.0040.00418.78
8.1.140.0050.00319.47
8.1.130.0000.01018.84
8.1.120.0050.00217.36
8.1.110.0050.00317.40
8.1.100.0040.00417.48
8.1.90.0000.00817.45
8.1.80.0000.00817.41
8.1.70.0000.00817.35
8.1.60.0040.00417.59
8.1.50.0000.00717.56
8.1.40.0110.00017.52
8.1.30.0040.00417.64
8.1.20.0040.00417.70
8.1.10.0040.00417.58
8.1.00.0040.00417.51
8.0.300.0030.00618.77
8.0.290.0000.00816.88
8.0.280.0000.00718.35
8.0.270.0060.00317.21
8.0.260.0030.00319.00
8.0.250.0060.00317.05
8.0.240.0000.00716.90
8.0.230.0040.00417.04
8.0.220.0070.00016.95
8.0.210.0040.00416.92
8.0.200.0050.00216.89
8.0.190.0000.00817.04
8.0.180.0040.00416.95
8.0.170.0040.00416.85
8.0.160.0040.00416.98
8.0.150.0060.00316.90
8.0.140.0030.00716.89
8.0.130.0000.00613.28
8.0.120.0000.00716.79
8.0.110.0050.00316.85
8.0.100.0040.00416.93
8.0.90.0000.00716.84
8.0.80.0110.00416.97
8.0.70.0030.00616.75
8.0.60.0000.00916.95
8.0.50.0040.00417.00
8.0.30.0160.00217.02
8.0.20.0080.01017.40
8.0.10.0040.00416.92
8.0.00.0140.00316.54
7.4.330.0000.00516.69
7.4.320.0060.00016.64
7.4.300.0060.00016.51
7.4.290.0030.00716.60
7.4.280.0050.00316.61
7.4.270.0030.00316.48
7.4.260.0000.00716.50
7.4.250.0060.00316.46
7.4.240.0040.00416.48
7.4.230.0040.00416.63
7.4.220.0180.00316.43
7.4.210.0120.00616.62
7.4.200.0000.00816.61
7.4.160.0120.00416.47
7.4.150.0070.01117.40
7.4.140.0110.01017.86
7.4.130.0100.01416.50
7.4.120.0120.00916.59
7.4.110.0030.01316.63
7.4.100.0070.01016.46
7.4.90.0070.01016.59
7.4.80.0070.01019.39
7.4.70.0040.01716.43
7.4.60.0100.01116.40
7.4.50.0070.01016.38
7.4.40.0110.00616.27
7.4.30.0150.00616.50
7.4.00.0020.01515.13
7.3.330.0030.00313.17
7.3.320.0030.00313.30
7.3.310.0040.00416.22
7.3.300.0000.00716.23
7.3.290.0030.00316.38
7.3.280.0090.00816.36
7.3.270.0160.00017.40
7.3.260.0110.00916.45
7.3.250.0090.00916.36
7.3.240.0060.01116.45
7.3.230.0100.00716.42
7.3.210.0140.00416.43
7.3.200.0120.00916.39
7.3.190.0070.01016.43
7.3.180.0120.00416.37
7.3.170.0060.01216.55
7.3.160.0130.00316.38
7.3.120.0040.01414.83
7.3.110.0070.01315.02
7.3.100.0110.00614.63
7.3.90.0100.00715.02
7.3.80.0060.01014.72
7.3.70.0100.00014.82
7.3.60.0060.00914.63
7.3.50.0110.00014.64
7.3.40.0130.00314.91
7.3.30.0070.01014.77
7.3.20.0110.00416.67
7.3.10.0030.00916.60
7.3.00.0040.00816.48
7.2.330.0040.01216.77
7.2.320.0040.01416.69
7.2.310.0030.01316.58
7.2.300.0060.01116.70
7.2.290.0050.01416.69
7.2.250.0160.00615.19
7.2.240.0070.01014.96
7.2.230.0070.01115.03
7.2.220.0040.00714.70
7.2.210.0080.00415.14
7.2.200.0120.00015.14
7.2.190.0060.01014.71
7.2.180.0030.00614.75
7.2.170.0060.01314.99
7.2.60.0160.00316.83
7.2.50.0070.00716.92
7.1.330.0070.00715.64
7.1.320.0040.00715.50
7.1.310.0030.01315.84
7.1.300.0030.00915.46
7.1.290.0030.00615.76
7.1.280.0060.00915.67
7.1.270.0070.00715.68
7.1.260.0040.01115.70
7.1.200.0060.00615.71
7.1.110.0090.01018.05
7.1.100.0060.01318.13
7.1.90.0110.00718.13
7.1.80.0120.00617.74
7.1.70.0000.01517.06
7.1.60.0220.01935.01
7.1.50.0260.01334.57
7.1.40.0190.01334.08
7.1.30.0230.01634.36
7.1.20.0190.01234.48
7.1.10.0090.00616.72
7.1.00.0100.00316.56
7.0.250.0040.01517.68
7.0.240.0070.00717.28
7.0.230.0070.01017.56
7.0.220.0000.01417.39
7.0.210.0080.00616.38
7.0.200.0090.00916.64
7.0.190.0140.00316.50
7.0.180.0090.00416.36
7.0.170.0060.00816.40
7.0.160.0090.00616.26
7.0.150.0000.01516.20
7.0.140.0120.00616.27
7.0.130.0060.00916.57
7.0.120.0000.01316.54
7.0.110.0060.01116.19
7.0.100.0030.01216.20
7.0.90.0100.00716.37
7.0.80.0030.01016.09
7.0.70.0090.00616.21
7.0.60.0030.01116.05
7.0.50.0070.00716.22
7.0.40.0040.01116.46
7.0.30.0060.00616.38
7.0.20.0040.01116.05
7.0.10.0080.00616.27
7.0.00.0070.00716.48

preferences:
60.2 ms | 401 KiB | 5 Q