3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($a, $b) { if ($a > $b) { echo 'A'; } else { echo 'B'; } } call_user_func_array('f', array('b' => 1, 'a' => 2));

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.4.10.0080.00819.34
8.3.140.0060.00320.82
8.3.130.0060.00918.53
8.3.120.0060.00320.86
8.3.110.0060.00318.45
8.3.100.0100.00018.26
8.3.90.0030.01526.77
8.3.80.0030.00619.36
8.3.70.0210.00318.08
8.3.60.0220.00318.19
8.3.50.0120.00622.28
8.3.40.0140.00818.40
8.3.30.0080.01118.26
8.3.20.0110.00621.08
8.3.10.0140.00821.32
8.3.00.0150.00222.06
8.2.250.0080.00016.49
8.2.240.0090.00017.18
8.2.230.0060.00320.94
8.2.220.0040.00424.06
8.2.210.0070.00426.77
8.2.200.0060.00318.88
8.2.190.0130.01118.07
8.2.180.0110.00821.95
8.2.170.0170.00518.38
8.2.160.0140.00720.47
8.2.150.0100.00721.82
8.2.140.0100.00921.32
8.2.130.0160.00522.06
8.2.120.0200.00322.16
8.2.110.0180.00519.18
8.2.100.0190.00417.78
8.2.90.0190.00417.61
8.2.80.0150.00817.73
8.2.70.0200.00717.45
8.2.60.0190.00717.63
8.2.50.0200.00317.76
8.2.40.0170.00517.77
8.2.30.0080.00717.78
8.2.20.0140.00517.73
8.2.10.0140.00518.14
8.2.00.0140.00418.04
8.1.300.0090.00915.88
8.1.290.0090.00030.84
8.1.280.0170.00321.95
8.1.270.0170.00520.97
8.1.260.0100.00723.03
8.1.250.0160.00123.03
8.1.240.0160.00320.93
8.1.230.0120.00319.44
8.1.220.0160.00517.57
8.1.210.0140.00717.91
8.1.200.0160.00417.24
8.1.190.0140.00417.43
8.1.180.0120.00617.69
8.1.170.0120.00717.83
8.1.160.0120.00717.87
8.1.150.0170.00417.96
8.1.140.0190.00517.95
8.1.130.0160.00918.00
8.1.120.0210.00517.44
8.1.110.0180.00617.40
8.1.100.0210.00617.33
8.1.90.0180.00417.43
8.1.80.0170.00317.48
8.1.70.0120.00617.52
8.1.60.0200.00117.63
8.1.50.0190.00617.61
8.1.40.0180.00417.63
8.1.30.0130.00617.49
8.1.20.0160.00617.59
8.1.10.0150.00417.51
8.1.00.0170.00217.44
8.0.300.0150.00517.92
8.0.290.0110.00916.98
8.0.280.0160.00417.56
8.0.270.0130.00917.43
8.0.260.0160.00417.03
8.0.250.0140.00617.59
8.0.240.0140.00517.00
8.0.230.0170.00317.06
8.0.220.0140.00617.01
8.0.210.0160.00516.96
8.0.200.0150.00417.04
8.0.190.0140.00717.03
8.0.180.0140.00717.00
8.0.170.0130.00717.07
8.0.160.0160.00217.00
8.0.150.0130.00516.91
8.0.140.0110.00816.97
8.0.130.0130.00415.88
8.0.120.0130.00417.01
8.0.110.0150.00316.97
8.0.100.0150.00516.97
8.0.90.0200.00217.01
8.0.80.0110.00916.93
8.0.70.0120.00816.98
8.0.60.0140.00616.93
8.0.50.0160.00416.90
8.0.30.0180.00417.15
8.0.20.0150.01017.21
8.0.10.0180.00917.25
8.0.00.0180.00717.36
7.4.330.0130.00516.94
7.4.320.0190.00516.86
7.4.300.0170.00416.86
7.4.290.0160.00616.88
7.4.280.0170.00516.91
7.4.270.0150.00616.94
7.4.260.0190.00716.88
7.4.250.0170.00616.86
7.4.240.0140.00416.78
7.4.230.0180.00116.81
7.4.220.0110.00516.86
7.4.210.0130.00716.75
7.4.200.0170.00416.91
7.4.190.0240.00517.08
7.4.180.0280.00217.08
7.4.160.0230.00717.10
7.4.150.0210.00517.21
7.4.140.0180.00417.19
7.4.130.0130.00817.19
7.4.120.0120.00717.19
7.4.110.0170.00417.19
7.4.100.0180.00417.19
7.4.90.0140.00717.19
7.4.80.0150.00717.19
7.4.70.0150.01017.19
7.4.60.0220.00617.19
7.4.50.0160.00817.19
7.4.40.0160.00717.19
7.4.30.0170.00617.19
7.4.20.0190.00317.21
7.4.10.0140.00617.19
7.4.00.0140.00717.19
7.3.330.0140.00516.81
7.3.320.0150.00115.84
7.3.310.0150.00316.83
7.3.300.0140.00416.77
7.3.290.0150.00816.57
7.3.280.0210.00817.08
7.3.270.0190.00817.19
7.3.260.0190.00717.19
7.3.250.0160.01017.19
7.3.240.0200.00617.19
7.3.230.0170.00917.19
7.3.220.0160.00717.19
7.3.210.0180.00417.19
7.3.200.0180.00417.19
7.3.190.0150.00617.19
7.3.180.0150.00717.19
7.3.170.0140.00717.19
7.3.160.0170.00517.19
7.3.150.0170.00417.19
7.3.140.0130.00917.19
7.3.130.0240.00417.19
7.3.120.0170.00517.19
7.3.110.0150.00617.19
7.3.100.0160.00317.19
7.3.90.0120.00717.19
7.3.80.0130.00717.19
7.3.70.0150.00717.19
7.3.60.0120.00917.19
7.3.50.0180.00317.19
7.3.40.0180.00417.19
7.3.30.0150.00617.19
7.3.20.0160.00617.64
7.3.10.0170.00617.69
7.3.00.0180.00417.66

preferences:
53.78 ms | 403 KiB | 5 Q