3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xxx = function() { echo "hi"; }; function something() { global $xxx; call_user_func($xxx); } something();

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.0150.00018.04
8.3.50.0090.00618.39
8.3.40.0080.00818.81
8.3.30.0100.00718.70
8.3.20.0070.00021.63
8.3.10.0040.00421.87
8.3.00.0080.00019.79
8.2.180.0180.00018.15
8.2.170.0100.00322.96
8.2.160.0030.01019.21
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00319.33
8.2.120.0030.00526.35
8.2.110.0140.00720.39
8.2.100.0070.00417.72
8.2.90.0090.00019.08
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0060.00317.63
8.2.50.0040.00417.55
8.2.40.0040.00419.35
8.2.30.0040.00419.34
8.2.20.0000.00718.17
8.2.10.0050.00218.12
8.2.00.0030.00517.99
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00320.91
8.1.230.0040.00817.42
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0050.00517.25
8.1.190.0060.00317.41
8.1.180.0040.00418.10
8.1.170.0090.00018.99
8.1.160.0000.00718.82
8.1.150.0040.00418.97
8.1.140.0040.00417.68
8.1.130.0030.00719.00
8.1.120.0100.00017.35
8.1.110.0000.00817.34
8.1.100.0040.00317.45
8.1.90.0030.00517.33
8.1.80.0000.00817.34
8.1.70.0000.00817.43
8.1.60.0000.01117.54
8.1.50.0050.00317.50
8.1.40.0030.00517.53
8.1.30.0000.00817.63
8.1.20.0040.00417.56
8.1.10.0050.00317.59
8.1.00.0050.00317.48
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0070.00018.32
8.0.270.0070.00017.16
8.0.260.0000.00717.12
8.0.250.0060.00316.78
8.0.240.0040.00316.84
8.0.230.0060.00316.92
8.0.220.0000.00716.81
8.0.210.0000.00816.71
8.0.200.0000.00716.95
8.0.190.0040.00416.91
8.0.180.0000.00716.86
8.0.170.0060.00316.93
8.0.160.0000.00816.86
8.0.150.0090.00316.83
8.0.140.0070.00016.73
8.0.130.0000.00613.30
8.0.120.0080.00016.88
8.0.110.0050.00216.89
8.0.100.0040.00416.94
8.0.90.0040.00416.78
8.0.80.0140.00016.83
8.0.70.0000.00716.73
8.0.60.0000.00716.89
8.0.50.0080.00016.90
8.0.30.0090.00917.06
8.0.20.0120.00617.40
8.0.10.0050.00316.96
8.0.00.0110.00816.72
7.4.330.0020.00215.55
7.4.320.0030.00316.48
7.4.300.0040.00416.34
7.4.290.0030.00316.50
7.4.280.0050.00216.38
7.4.270.0030.00716.50
7.4.260.0080.00016.48
7.4.250.0070.00016.33
7.4.240.0050.00216.60
7.4.230.0030.00316.68
7.4.220.0050.00316.59
7.4.210.0050.01216.54
7.4.200.0000.00716.61
7.4.160.0060.01016.51
7.4.140.0080.01117.86
7.4.130.0070.01016.51
7.4.120.0100.00716.51
7.4.110.0100.00716.78
7.4.100.0090.00916.30
7.4.90.0030.01316.46
7.4.80.0090.01219.39
7.4.70.0130.00316.50
7.4.60.0140.00716.39
7.4.50.0060.01016.49
7.4.40.0030.01316.39
7.4.00.0060.00815.17
7.3.330.0050.00013.18
7.3.320.0050.00013.05
7.3.310.0040.00416.33
7.3.300.0040.00416.18
7.3.290.0030.00316.24
7.3.280.0090.00716.19
7.3.260.0120.00616.37
7.3.240.0100.00816.36
7.3.230.0070.01016.36
7.3.210.0100.01016.46
7.3.200.0170.00316.43
7.3.190.0060.00916.20
7.3.180.0160.00016.37
7.3.170.0120.00416.38
7.3.160.0080.00816.31
7.3.120.0100.00714.57
7.3.110.0030.01414.95
7.3.100.0040.01114.91
7.3.90.0090.00614.63
7.3.80.0140.00014.39
7.3.70.0090.00614.90
7.3.60.0070.00714.44
7.3.50.0030.00914.69
7.3.40.0030.01014.76
7.3.30.0040.01114.76
7.3.20.0070.00716.32
7.3.10.0080.00616.70
7.3.00.0030.01016.51
7.2.330.0140.01016.52
7.2.320.0080.01816.70
7.2.310.0070.01016.66
7.2.300.0090.01516.32
7.2.290.0160.00516.55
7.2.250.0100.00615.20
7.2.240.0060.01214.83
7.2.230.0090.00614.74
7.2.220.0040.00714.81
7.2.210.0090.00614.89
7.2.200.0040.01114.95
7.2.190.0100.00315.00
7.2.180.0070.00714.98
7.2.170.0000.01914.97
7.2.80.0040.00816.61
7.2.60.0090.00316.96
7.2.50.0060.00617.03
7.2.40.0390.01217.41
7.2.30.0160.01117.72
7.2.20.0150.01117.69
7.2.10.0140.01517.84
7.2.00.0440.01117.70
7.1.330.0000.01415.76
7.1.320.0080.00415.51
7.1.310.0030.01015.62
7.1.300.0000.00815.57
7.1.290.0110.00615.65
7.1.280.0110.00315.79
7.1.270.0040.01115.72
7.1.260.0080.00415.63
7.1.200.0040.00815.74
7.1.160.0100.01216.39
7.1.150.0110.01616.55
7.1.140.0150.01116.34
7.1.130.0100.01316.47
7.1.120.0150.00716.80
7.1.110.0150.00816.20
7.1.100.0070.01515.97
7.1.90.0070.01716.30
7.1.80.0220.01415.96
7.1.70.4910.00915.05
7.1.60.6420.01433.11
7.1.50.6180.01232.64
7.1.40.7040.01332.39
7.1.30.6170.01832.45
7.1.20.7520.01532.52
7.1.10.7100.01114.68
7.1.00.1210.02514.70

preferences:
58.41 ms | 400 KiB | 5 Q