3v4l.org

run code in 300+ PHP versions simultaneously
<?php $table = 'user_field_data'; $index = 'a_veeeery_veery_very_super_long_field_name__key'; $data = implode('__', [$table, $index]); echo strtr(base64_encode(hash('sha256', $data, TRUE)), ['+' => '_', '/' => '_', '=' => '']);

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.130.0130.00824.02
8.4.120.0110.01018.52
8.4.110.0120.00918.66
8.4.100.0050.00517.83
8.4.90.0150.00520.64
8.4.80.0120.00819.01
8.4.70.0080.01218.78
8.4.60.0140.00620.49
8.4.50.0070.01418.66
8.4.40.0150.00420.16
8.4.30.0070.01318.59
8.4.20.0060.01325.89
8.4.10.0060.00323.88
8.3.260.0080.00716.47
8.3.250.0120.00416.48
8.3.240.0110.00816.63
8.3.230.0110.00716.36
8.3.220.0100.00319.04
8.3.210.0040.00416.70
8.3.200.0150.00616.74
8.3.190.0080.00716.95
8.3.180.0110.00820.85
8.3.170.0130.00616.91
8.3.160.0070.01316.30
8.3.150.0130.00616.51
8.3.140.0040.00416.55
8.3.130.0030.00617.07
8.3.120.0110.00718.66
8.3.110.0080.00020.94
8.3.100.0080.00016.53
8.3.90.0050.00318.33
8.3.80.0120.00017.97
8.3.70.0120.00916.62
8.3.60.0110.00416.35
8.3.50.0120.00616.59
8.3.40.0140.00320.42
8.3.30.0100.00318.67
8.3.20.0080.00024.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0090.00818.93
8.2.280.0110.00818.19
8.2.270.0040.01516.72
8.2.260.0040.00417.21
8.2.250.0030.00516.55
8.2.240.0080.00017.14
8.2.230.0060.00322.58
8.2.220.0080.00024.06
8.2.210.0080.00026.77
8.2.200.0000.00918.42
8.2.190.0110.00416.58
8.2.180.0070.00716.50
8.2.170.0120.00918.95
8.2.160.0070.00722.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00526.16
8.2.110.0060.00322.26
8.2.100.0080.00317.78
8.2.90.0060.00317.63
8.2.80.0040.00418.74
8.2.70.0030.00517.50
8.2.60.0000.00817.38
8.2.50.0000.00817.63
8.2.40.0080.00017.63
8.2.30.0070.00017.56
8.2.20.0070.00019.25
8.2.10.0040.00418.10
8.2.00.0040.00417.62
8.1.330.0100.00918.20
8.1.320.0090.01015.94
8.1.310.0070.01016.77
8.1.300.0160.00317.80
8.1.290.0090.00018.88
8.1.280.0150.00625.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0040.00717.71
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0030.00717.25
8.1.190.0030.00617.36
8.1.180.0060.00318.10
8.1.170.0000.00717.62
8.1.160.0000.00718.84
8.1.150.0040.00418.63
8.1.140.0000.00717.32
8.1.130.0000.00717.45
8.1.120.0020.00517.47
8.1.110.0040.00417.50
8.1.100.0000.00819.26
8.1.90.0040.00419.23
8.1.80.0000.00919.23
8.1.70.0000.00717.42
8.1.60.0050.00217.63
8.1.50.0000.00717.50
8.1.40.0000.00817.58
8.1.30.0000.00717.68
8.1.20.0040.00417.70
8.1.10.0040.00417.57
8.1.00.0030.00717.45
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0050.00318.00
8.0.270.0040.00417.97
8.0.260.0080.00016.80
8.0.250.0000.00816.79
8.0.240.0040.00416.77
8.0.230.0060.00316.81
8.0.220.0070.00018.64
8.0.210.0070.00016.80
8.0.200.0000.00716.87
8.0.190.0000.00716.79
8.0.180.0040.00416.74
8.0.170.0030.00316.74
8.0.160.0040.00416.81
8.0.150.0030.00316.77
8.0.140.0000.00716.79
8.0.130.0030.00316.76
8.0.120.0000.00716.72
8.0.110.0070.00016.70
8.0.100.0000.00716.70
8.0.90.0000.00716.80
8.0.80.0080.00016.79
8.0.70.0030.00316.82
8.0.60.0040.00416.80
8.0.50.0040.00416.85
8.0.30.0030.00316.80
8.0.20.0040.00416.75
8.0.10.0070.00016.84

preferences:
26.85 ms | 403 KiB | 5 Q