3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = 'GivenName'; $mid = 'Middle'; $surname = 'Surname'; $f_initial = substr($first, 0, 1); $m_initial = substr($mid, 0, 1); echo $f_initial . ' ' . $m_initial . ' ' . $surname;

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.0140.01017.39
8.4.120.0100.01120.40
8.4.110.0100.01122.26
8.4.100.0140.00617.53
8.4.90.0040.00517.55
8.4.80.0060.00217.59
8.4.70.0100.00617.63
8.4.60.0120.00418.64
8.4.50.0090.01217.77
8.4.40.0130.00017.49
8.4.30.0060.01317.44
8.4.20.0190.00019.14
8.4.10.0000.00917.80
8.3.260.0140.00516.45
8.3.250.0080.01018.82
8.3.240.0050.00416.72
8.3.230.0060.00216.71
8.3.220.0050.00817.40
8.3.210.0110.00716.60
8.3.200.0050.00316.40
8.3.190.0120.00719.07
8.3.180.0080.00516.65
8.3.170.0110.00720.58
8.3.160.0080.00018.15
8.3.150.0000.01417.18
8.3.140.0150.00319.20
8.3.130.0040.00418.24
8.3.120.0060.00318.71
8.3.110.0060.01320.94
8.3.100.0080.00024.06
8.3.90.0030.00626.77
8.3.80.0030.00618.18
8.3.70.0180.00416.63
8.3.60.0060.01218.39
8.3.50.0100.01318.12
8.3.40.0110.00318.71
8.3.30.0090.00618.41
8.3.20.0040.00420.03
8.3.10.0050.00323.66
8.3.00.0040.00423.60
8.2.290.0100.00920.54
8.2.280.0040.00420.10
8.2.270.0110.00718.79
8.2.260.0140.00418.54
8.2.250.0000.00818.28
8.2.240.0070.00718.87
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0000.00926.77
8.2.200.0040.00416.63
8.2.190.0070.01416.63
8.2.180.0120.00918.29
8.2.170.0040.01122.96
8.2.160.0120.00319.27
8.2.150.0030.00624.18
8.2.140.0080.00024.66
8.2.130.0000.00720.53
8.2.120.0000.00826.35
8.2.110.0090.00022.37
8.2.100.0080.00318.16
8.2.90.0040.00418.22
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00817.50
8.2.50.0080.00018.10
8.2.40.0000.00720.50
8.2.30.0020.00519.23
8.2.20.0040.00418.07
8.2.10.0040.00418.14
8.2.00.0040.00418.13
8.1.330.0140.00518.34
8.1.320.0100.01017.65
8.1.310.0050.00318.39
8.1.300.0110.00716.22
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0000.00723.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.20
8.1.230.0080.00422.75
8.1.220.0090.00017.77
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0070.00017.23
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0050.00218.93
8.1.150.0040.00420.12
8.1.140.0000.00719.08
8.1.130.0070.00018.87
8.1.120.0000.00717.50
8.1.110.0040.00417.48
8.1.100.0000.00817.28
8.1.90.0030.00517.47
8.1.80.0040.00417.43
8.1.70.0050.00317.38
8.1.60.0040.00417.56
8.1.50.0040.00417.35
8.1.40.0040.00417.50
8.1.30.0040.00417.54
8.1.20.0070.00017.47
8.1.10.0040.00417.46
8.1.00.0040.00417.40
8.0.300.0000.00819.50
8.0.290.0000.00816.63
8.0.280.0030.00318.37
8.0.270.0000.00717.29
8.0.260.0000.00718.91
8.0.250.0030.00316.90
8.0.240.0000.00816.96
8.0.230.0040.00416.86
8.0.220.0030.00316.88
8.0.210.0000.00716.90
8.0.200.0060.00016.95
8.0.190.0070.00016.94
8.0.180.0040.00416.82
8.0.170.0000.00716.90
8.0.160.0040.00416.77
8.0.150.0070.00016.71
8.0.140.0030.00616.86
8.0.130.0050.00013.32
8.0.120.0030.00316.83
8.0.110.0040.00316.75
8.0.100.0050.00216.87
8.0.90.0050.00216.88
8.0.80.0040.01616.77
8.0.70.0000.00716.67
8.0.60.0000.00716.92
8.0.50.0040.00416.94
8.0.30.0060.01017.04
8.0.20.0130.00717.40
8.0.10.0000.00716.91
8.0.00.0140.00316.71
7.4.330.0040.00015.55
7.4.320.0000.00616.64
7.4.300.0060.00016.47
7.4.290.0070.00016.65
7.4.280.0040.00416.61
7.4.270.0070.00016.45
7.4.260.0030.00616.57
7.4.250.0050.00316.46
7.4.240.0080.00016.48
7.4.230.0040.00416.44
7.4.220.0160.01016.48
7.4.210.0090.00516.55
7.4.200.0070.00016.24
7.4.160.0110.00716.34
7.4.150.0100.00717.40
7.4.140.0130.00617.86
7.4.130.0080.01616.41
7.4.120.0130.00816.48
7.4.110.0040.01416.39
7.4.100.0070.01116.61
7.4.90.0070.01116.38
7.4.80.0090.00919.39
7.4.70.0090.00916.45
7.4.60.0030.01316.56
7.4.50.0030.01216.38
7.4.40.0110.00516.41
7.4.30.0110.00616.63
7.4.00.0120.00014.74
7.3.330.0000.00513.20
7.3.320.0040.00413.00
7.3.310.0000.00616.13
7.3.300.0070.00016.24
7.3.290.0000.00616.25
7.3.280.0090.00916.29
7.3.270.0070.01117.40
7.3.260.0130.00916.43
7.3.250.0120.00716.40
7.3.240.0070.01216.39
7.3.230.0040.01216.32
7.3.210.0100.00716.19
7.3.200.0150.00616.57
7.3.190.0040.01216.30
7.3.180.0000.01616.32
7.3.170.0030.01616.51
7.3.160.0120.00416.25
7.2.330.0070.01016.76
7.2.320.0310.00616.79
7.2.310.0130.00716.54
7.2.300.0140.01216.60
7.2.290.0000.01516.86
7.2.60.0040.01116.79
7.2.50.0040.00717.00
7.1.200.0000.01015.94
7.1.110.0600.01016.23
7.1.100.0650.00716.31
7.1.90.0590.01016.12
7.1.80.0990.00716.36
7.1.70.0000.01417.08
7.1.60.0270.01134.98
7.1.50.0290.01534.80
7.1.40.0320.01034.30
7.1.30.0190.01334.40
7.1.20.0180.01834.38
7.1.10.0080.01116.56
7.1.00.0030.01016.63
7.0.250.0030.01217.64
7.0.240.0520.00616.01
7.0.230.0050.01217.76
7.0.220.0810.01215.79
7.0.210.0040.01016.40
7.0.200.0090.00916.65
7.0.190.0060.01316.48
7.0.180.0060.01416.09
7.0.170.0110.00416.11
7.0.160.0060.01416.25
7.0.150.0030.01616.21
7.0.140.0070.01316.39
7.0.130.0060.00916.63
7.0.120.0030.01016.46
7.0.110.0030.01216.28
7.0.100.0090.00616.21
7.0.90.0060.00916.02
7.0.80.0040.01116.38
7.0.70.0090.00616.47
7.0.60.0090.00616.23
7.0.50.0040.01116.00
7.0.40.0100.00316.43
7.0.30.0030.01016.38
7.0.20.0080.01116.32
7.0.10.0100.01016.30
7.0.00.0000.01516.32

preferences:
115.85 ms | 403 KiB | 5 Q