3v4l.org

run code in 300+ PHP versions simultaneously
<?php $author = 'Jan'; $foo = explode(' ', $author); var_dump($foo); $firstName = reset($foo); $lastName = end($foo); echo $firstName . ' ' . $lastName;

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.00016.63
8.3.50.0110.00718.33
8.3.40.0150.00318.64
8.3.30.0000.01518.84
8.3.20.0040.00420.18
8.3.10.0140.00021.65
8.3.00.0060.00319.25
8.2.180.0110.01118.16
8.2.170.0090.00622.96
8.2.160.0060.01520.43
8.2.150.0050.00324.18
8.2.140.0000.00924.66
8.2.130.0070.00026.16
8.2.120.0040.00419.23
8.2.110.0040.00421.14
8.2.100.0120.00017.63
8.2.90.0030.00618.86
8.2.80.0040.00417.97
8.2.70.0080.00317.50
8.2.60.0030.00618.04
8.2.50.0080.00018.07
8.2.40.0060.00320.07
8.2.30.0090.00017.98
8.2.20.0070.00017.78
8.2.10.0040.00418.17
8.2.00.0000.00717.84
8.1.270.0030.00620.73
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00822.19
8.1.230.0000.01117.55
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0030.00520.28
8.1.160.0040.00421.88
8.1.150.0040.00418.88
8.1.140.0000.00717.29
8.1.130.0000.00717.82
8.1.120.0040.00417.36
8.1.110.0030.00517.48
8.1.100.0080.00017.37
8.1.90.0070.00017.48
8.1.80.0040.00417.30
8.1.70.0030.00317.34
8.1.60.0030.00517.56
8.1.50.0040.00417.40
8.1.40.0000.00717.33
8.1.30.0040.00417.54
8.1.20.0000.00717.55
8.1.10.0070.00017.47
8.1.00.0000.00917.31
8.0.300.0000.00718.77
8.0.290.0000.00916.71
8.0.280.0070.00018.36
8.0.270.0000.00717.15
8.0.260.0080.00017.12
8.0.250.0030.00316.86
8.0.240.0040.00416.88
8.0.230.0000.00716.95
8.0.220.0000.00616.89
8.0.210.0030.00316.94
8.0.200.0070.00016.98
8.0.190.0040.00416.81
8.0.180.0000.00716.80
8.0.170.0040.00416.86
8.0.160.0000.00716.95
8.0.150.0000.00716.91
8.0.140.0000.00716.83
8.0.130.0000.00613.30
8.0.120.0030.00516.85
8.0.110.0040.00416.73
8.0.100.0000.00716.89
8.0.90.0040.00416.93
8.0.80.0030.01116.77
8.0.70.0040.00416.76
8.0.60.0080.00016.83
8.0.50.0000.00716.75
8.0.30.0120.00917.03
8.0.20.0110.00817.40
8.0.10.0070.00017.00
8.0.00.0060.01416.84
7.4.330.0020.00215.03
7.4.320.0040.00416.48
7.4.300.0030.00316.52
7.4.290.0000.00716.48
7.4.280.0030.00316.57
7.4.270.0030.00316.48
7.4.260.0040.00416.47
7.4.250.0050.00216.45
7.4.240.0030.00516.57
7.4.230.0000.00716.31
7.4.220.0120.00616.60
7.4.210.0100.00516.51
7.4.200.0050.00216.60
7.4.160.0040.01116.27
7.4.150.0000.01817.40
7.4.140.0120.00717.86
7.4.130.0060.01316.41
7.4.120.0090.00916.56
7.4.110.0150.00816.31
7.4.100.0100.01016.33
7.4.90.0090.00916.44
7.4.80.0180.00019.39
7.4.70.0120.00616.46
7.4.60.0060.00916.44
7.4.50.0040.00416.54
7.4.40.0090.00916.20
7.4.30.0130.00616.64
7.4.00.0070.01014.58
7.3.330.0050.00013.04
7.3.320.0050.01113.05
7.3.310.0030.00316.06
7.3.300.0000.00616.05
7.3.290.0030.00316.24
7.3.280.0070.00816.20
7.3.270.0130.00317.40
7.3.260.0060.01016.48
7.3.250.0140.00616.22
7.3.240.0080.00816.24
7.3.230.0130.00316.50
7.3.210.0030.01516.38
7.3.200.0180.00319.39
7.3.190.0110.00516.13
7.3.180.0030.01316.23
7.3.170.0180.00316.47
7.3.160.0000.02016.26
7.3.10.0060.00616.65
7.3.00.0080.00416.68
7.2.330.0120.00616.77
7.2.320.0130.00316.80
7.2.310.0060.01516.71
7.2.300.0070.01416.62
7.2.290.0110.00816.79
7.2.130.0090.00616.97
7.2.120.0000.01316.93
7.2.110.0110.00717.14
7.2.100.0070.00416.88
7.2.90.0080.00416.77
7.2.80.0000.01316.73
7.2.70.0070.00717.02
7.2.60.0030.01017.04
7.2.50.0070.00717.04
7.2.40.0040.00417.11
7.2.30.0060.00316.75
7.2.20.0070.00716.86
7.2.10.0060.00916.95
7.2.00.0040.00818.01
7.1.250.0050.00315.93
7.1.200.0070.00715.88
7.1.100.0100.00318.16
7.1.70.0090.00616.82
7.1.60.0130.01319.50
7.1.50.0100.01016.95
7.1.00.0030.07722.36
7.0.200.0030.01015.15
7.0.140.0070.03321.92
7.0.60.0030.08320.04
7.0.50.0000.04317.86
7.0.40.0070.05319.98
7.0.30.0330.05320.01
7.0.20.0470.06720.04
7.0.10.0130.07720.30
7.0.00.0070.06020.19
5.6.280.0070.07020.77
5.6.210.0000.07720.62
5.6.200.0030.04018.18
5.6.190.0030.06020.63
5.6.180.0400.07320.45
5.6.170.0370.05320.36
5.6.160.0030.07720.42
5.6.150.0030.08318.15
5.6.140.0030.08318.15
5.6.130.0000.07718.16
5.6.120.0100.03321.13
5.6.110.0130.07721.10
5.6.100.0130.07721.12
5.6.90.0100.06721.12
5.6.80.0000.06020.50
5.5.350.0170.06020.42
5.5.340.0200.03317.92
5.5.330.0070.05020.36
5.5.320.0300.07320.24
5.5.310.0270.07720.22
5.5.300.0030.08317.97
5.5.290.0070.04018.01
5.5.280.0070.07720.84
5.5.270.0130.07320.69
5.5.260.0130.07720.93
5.5.250.0070.03720.77
5.5.240.0070.07320.24
5.4.450.0570.08019.47
5.4.440.0700.07719.52
5.4.430.0900.05319.31
5.4.420.1100.05019.63
5.4.410.1030.05719.30
5.4.400.0270.05718.66
5.4.390.0230.05018.49
5.4.380.0070.06718.47
5.4.370.0270.04718.61
5.4.360.0370.04718.68
5.4.350.0370.06718.58
5.4.340.0330.06018.69
5.4.320.0300.06318.60
5.4.310.0170.05718.57
5.4.300.0270.05318.48
5.4.290.0230.05318.58
5.4.280.0230.07318.68
5.4.270.0200.07318.54
5.4.260.0200.05318.50
5.4.250.0130.06718.52
5.4.240.0330.05718.58
5.4.230.0200.05718.52
5.4.220.0270.06718.52
5.4.210.0200.06318.59
5.4.200.0270.06316.65
5.4.190.0300.06718.53
5.4.180.0330.05718.49
5.4.170.0270.06018.52
5.4.160.0330.04718.56
5.4.150.0170.06018.65
5.4.140.0300.04716.27
5.4.130.0200.04716.18
5.4.120.0200.05016.28
5.4.110.0330.04316.25
5.4.100.0130.06716.26
5.4.90.0330.04716.29
5.4.80.0270.05016.02
5.4.70.0230.05316.02
5.4.60.0130.06716.04
5.4.50.0300.04016.32
5.4.40.0130.06316.19
5.4.30.0330.03716.21
5.4.20.0170.05716.09
5.4.10.0230.05016.02
5.4.00.0230.05015.60
5.3.290.0330.04714.55
5.3.280.0170.06314.57
5.3.270.0270.05314.55
5.3.260.0200.05714.51
5.3.250.0230.05014.68
5.3.240.0270.05314.59
5.3.230.0300.06714.50
5.3.220.0230.05314.46
5.3.210.0270.05314.53
5.3.200.0200.05314.52
5.3.190.0330.06314.61
5.3.180.0270.06714.51
5.3.170.0200.06714.47
5.3.160.0200.05314.54
5.3.150.0270.04714.54
5.3.140.0300.04314.64
5.3.130.0130.06014.61
5.3.120.0200.07714.57
5.3.110.0170.06014.53
5.3.100.0200.05714.13
5.3.90.0200.05314.00
5.3.80.0300.04314.05
5.3.70.0270.04713.96
5.3.60.0270.04713.99
5.3.50.0100.06313.88
5.3.40.0100.06713.99
5.3.30.0100.07014.00
5.3.20.0230.05313.63
5.3.10.0270.05013.64
5.3.00.0300.06013.73
5.2.170.0170.04711.07
5.2.160.0130.04311.30
5.2.150.0070.05311.28
5.2.140.0230.03311.12
5.2.130.0100.04711.10
5.2.120.0170.04311.15
5.2.110.0200.04711.09
5.2.100.0100.04311.05
5.2.90.0270.03011.08
5.2.80.0100.04711.05
5.2.70.0130.04311.15
5.2.60.0130.06011.04
5.2.50.0200.05711.04
5.2.40.0100.04710.95
5.2.30.0100.04710.96
5.2.20.0170.03710.99
5.2.10.0130.04010.83
5.2.00.0030.05010.73
5.1.60.0070.05310.04
5.1.50.0230.04010.11
5.1.40.0170.04710.07
5.1.30.0200.03710.36
5.1.20.0170.03710.43
5.1.10.0170.03310.08
5.1.00.0100.04010.09
5.0.50.0100.0378.64
5.0.40.0070.0308.38
5.0.30.0070.0478.24
5.0.20.0130.0278.29
5.0.10.0100.0308.36
5.0.00.0070.0478.25
4.4.90.0100.0205.91
4.4.80.0070.0235.85
4.4.70.0030.0275.81
4.4.60.0130.0175.92
4.4.50.0030.0275.82
4.4.40.0100.0435.88
4.4.30.0070.0235.94
4.4.20.0130.0175.98
4.4.10.0030.0275.94
4.4.00.0030.0435.89
4.3.110.0100.0205.75
4.3.100.0170.0305.79
4.3.90.0030.0235.89
4.3.80.0030.0375.89
4.3.70.0030.0235.82
4.3.60.0030.0335.77
4.3.50.0130.0235.91
4.3.40.0070.0405.76
4.3.30.0000.0304.59
4.3.20.0070.0274.61
4.3.10.0030.0304.61
4.3.00.0170.0207.11

preferences:
48.91 ms | 400 KiB | 5 Q