3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f1 = function() { return 'a'; }; $f2 = function() { return 'b'; }; $f3 = $f1; var_dump(spl_object_hash($f1)); var_dump(spl_object_hash($f2)); var_dump(spl_object_hash($f3));

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.0090.01218.27
8.3.50.0130.00622.03
8.3.40.0100.00718.69
8.3.30.0150.00018.59
8.3.20.0070.00020.34
8.3.10.0070.00023.70
8.3.00.0000.00819.44
8.2.180.0090.00918.16
8.2.170.0100.00322.96
8.2.160.0070.00720.44
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.03
8.2.120.0090.00026.35
8.2.110.0070.00320.53
8.2.100.0110.00017.93
8.2.90.0000.00919.26
8.2.80.0040.00417.97
8.2.70.0040.00417.47
8.2.60.0060.00617.93
8.2.50.0060.00318.07
8.2.40.0040.00420.94
8.2.30.0000.00720.55
8.2.20.0030.00517.57
8.2.10.0070.00017.97
8.2.00.0040.00417.94
8.1.280.0040.01125.92
8.1.270.0050.00320.23
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0000.00822.18
8.1.230.0040.01117.64
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.01018.45
8.1.160.0000.00720.64
8.1.150.0040.00418.81
8.1.140.0040.00419.58
8.1.130.0030.00317.62
8.1.120.0050.00317.47
8.1.110.0030.00517.33
8.1.100.0000.00717.48
8.1.90.0000.00817.43
8.1.80.0040.00417.47
8.1.70.0060.00317.45
8.1.60.0040.00417.47
8.1.50.0000.00817.56
8.1.40.0040.00417.58
8.1.30.0090.00017.55
8.1.20.0040.00417.71
8.1.10.0000.00817.45
8.1.00.0050.00217.36
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.36
8.0.270.0000.00717.11
8.0.260.0030.00317.20
8.0.250.0030.00316.91
8.0.240.0040.00416.91
8.0.230.0000.00816.95
8.0.220.0000.00716.90
8.0.210.0030.00316.82
8.0.200.0060.00017.01
8.0.190.0040.00416.90
8.0.180.0040.00416.89
8.0.170.0000.00716.96
8.0.160.0000.00716.79
8.0.150.0000.00716.92
8.0.140.0000.00716.88
8.0.130.0030.00313.29
8.0.120.0050.00316.88
8.0.110.0030.00516.94
8.0.100.0050.00316.72
8.0.90.0080.00016.88
8.0.80.0100.01016.84
8.0.70.0050.00216.94
8.0.60.0000.00816.95
8.0.50.0040.00416.76
8.0.30.0090.00817.17
8.0.20.0080.01117.40
8.0.10.0070.00017.00
8.0.00.0130.00616.67
7.4.330.0050.00016.67
7.4.320.0000.00716.59
7.4.300.0050.00216.61
7.4.290.0000.00716.59
7.4.280.0040.00616.39
7.4.270.0070.00016.37
7.4.260.0030.00316.49
7.4.250.0000.00816.47
7.4.240.0000.00816.58
7.4.230.0070.00016.50
7.4.220.0050.01516.51
7.4.210.0080.00816.62
7.4.200.0070.00016.68
7.4.160.0130.00316.39
7.4.150.0170.00017.40
7.4.140.0120.01317.86
7.4.130.0140.00516.48
7.4.120.0120.01116.61
7.4.110.0100.01016.38
7.4.100.0050.01116.39
7.4.90.0090.00916.40
7.4.80.0160.00619.39
7.4.70.0070.01016.61
7.4.60.0070.01016.49
7.4.50.0100.00316.30
7.4.40.0090.01316.39
7.4.30.0140.01116.50
7.4.00.0130.00314.65
7.3.330.0060.00013.28
7.3.320.0000.00513.12
7.3.310.0030.00316.17
7.3.300.0000.00716.27
7.3.290.0060.00816.32
7.3.280.0080.00816.29
7.3.270.0040.01417.40
7.3.260.0110.00716.30
7.3.250.0100.01016.56
7.3.240.0110.00716.33
7.3.230.0070.01016.52
7.3.210.0090.00916.32
7.3.200.0070.01016.34
7.3.190.0060.00916.33
7.3.180.0000.01916.57
7.3.170.0140.00716.55
7.3.160.0130.00316.34
7.2.330.0130.01016.45
7.2.320.0070.01516.51
7.2.310.0060.01216.61
7.2.300.0060.01116.67
7.2.290.0120.00916.51
7.2.60.0030.01316.36
7.2.00.0030.00919.27
7.1.200.0080.00415.66
7.1.100.0030.00917.71
7.1.70.0040.00416.75
7.1.60.0190.00619.13
7.1.50.0150.00916.89
7.1.00.0000.08022.37
7.0.200.0000.00916.73
7.0.60.0130.05719.90
7.0.50.0070.08317.89
7.0.40.0030.04320.27
7.0.30.0270.08020.06
7.0.20.0330.07720.07
7.0.10.0100.03720.07
7.0.00.0100.06020.32
5.6.280.0030.07320.99
5.6.210.0130.08020.47
5.6.200.0130.08018.18
5.6.190.0000.08020.48
5.6.180.0100.08320.68
5.6.170.0300.07720.45
5.6.160.0070.08320.57
5.6.150.0030.05318.23
5.6.140.0070.04018.14
5.6.130.0030.08718.21
5.6.120.0130.07720.99
5.6.110.0100.07021.09
5.6.100.0070.04021.01
5.6.90.0130.07021.04
5.6.80.0100.07020.38
5.5.350.4100.05020.30
5.5.340.0100.08017.97
5.5.330.0030.06720.21
5.5.320.0300.07720.32
5.5.310.0170.04320.33
5.5.300.0030.04017.96
5.5.290.0070.06717.99
5.5.280.0030.04720.77
5.5.270.0070.06020.80
5.5.260.0030.08320.77
5.5.250.0070.03720.69
5.5.240.0100.07020.26

preferences:
58.25 ms | 401 KiB | 5 Q