3v4l.org

run code in 300+ PHP versions simultaneously
<?php $author = 'Jan Stanisław Nowak'; $foo = explode(' ', $author); $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.40.0040.01118.71
8.3.30.0070.00718.89
8.3.20.0070.00020.19
8.3.10.0040.00421.78
8.3.00.0090.00319.38
8.2.170.0040.01122.96
8.2.160.0130.00322.13
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.36
8.2.110.0000.01119.39
8.2.100.0040.00817.75
8.2.90.0080.00019.10
8.2.80.0030.00617.97
8.2.70.0080.00317.63
8.2.60.0030.00617.68
8.2.50.0000.00818.07
8.2.40.0040.00420.07
8.2.30.0030.00618.05
8.2.20.0000.00717.68
8.2.10.0000.00818.12
8.2.00.0000.00817.71
8.1.270.0000.00820.64
8.1.260.0000.00826.35
8.1.250.0030.01028.09
8.1.240.0050.00519.12
8.1.230.0080.00317.64
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0000.00917.00
8.1.180.0000.00818.10
8.1.170.0030.00520.38
8.1.160.0080.00021.92
8.1.150.0000.00718.81
8.1.140.0050.00317.37
8.1.130.0030.00317.74
8.1.120.0000.00717.46
8.1.110.0000.00717.32
8.1.100.0030.00317.43
8.1.90.0070.00017.33
8.1.80.0000.00717.48
8.1.70.0000.00717.46
8.1.60.0080.00017.55
8.1.50.0030.00517.52
8.1.40.0000.00717.54
8.1.30.0040.00417.66
8.1.20.0040.00417.62
8.1.10.0070.00017.53
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0040.00418.51
8.0.270.0000.00717.11
8.0.260.0060.00017.22
8.0.250.0030.00316.96
8.0.240.0030.00316.82
8.0.230.0070.00016.90
8.0.220.0000.00716.86
8.0.210.0000.00716.86
8.0.200.0060.00016.94
8.0.190.0000.00716.96
8.0.180.0000.00816.80
8.0.170.0040.00416.89
8.0.160.0060.00316.91
8.0.150.0070.00016.74
8.0.140.0000.00816.88
8.0.130.0000.00513.29
8.0.120.0080.00016.88
8.0.110.0080.00016.77
8.0.100.0000.00717.00
8.0.90.0070.00016.89
8.0.80.0150.00016.84
8.0.70.0000.00716.76
8.0.60.0080.00016.79
8.0.50.0040.00416.68
8.0.30.0110.01016.96
8.0.20.0060.01617.40
8.0.10.0040.00416.80
8.0.00.0090.01016.72
7.4.330.0030.00315.08
7.4.320.0000.00616.36
7.4.300.0030.00316.64
7.4.290.0070.00016.58
7.4.280.0000.00716.43
7.4.270.0040.00416.59
7.4.260.0030.00416.46
7.4.250.0000.00716.43
7.4.240.0060.00216.52
7.4.230.0060.00316.39
7.4.220.0070.02016.53
7.4.210.0080.00716.47
7.4.200.0030.00316.52
7.4.160.0100.00716.46
7.4.150.0100.01017.40
7.4.140.0090.01017.86
7.4.130.0140.00316.37
7.4.120.0060.01216.51
7.4.110.0040.01816.52
7.4.100.0120.00616.53
7.4.90.0100.00716.53
7.4.80.0030.01619.39
7.4.70.0090.00916.27
7.4.60.0130.00316.39
7.4.50.0000.00416.41
7.4.40.0130.00616.39
7.4.30.0040.01816.49
7.4.00.0000.01214.75
7.3.330.0020.00213.18
7.3.320.0090.00613.09
7.3.310.0040.00416.13
7.3.300.0030.00316.23
7.3.290.0000.00716.04
7.3.280.0090.00816.17
7.3.270.0090.00917.40
7.3.260.0080.00816.52
7.3.250.0100.01016.34
7.3.240.0150.00316.49
7.3.230.0110.00616.39
7.3.210.0070.01016.41
7.3.200.0110.00619.39
7.3.190.0030.01316.48
7.3.180.0090.00616.20
7.3.170.0100.01316.40
7.3.160.0080.00816.46
7.3.10.0080.00016.43
7.3.00.0090.00316.45
7.2.330.0090.00816.68
7.2.320.0000.01616.53
7.2.310.0130.00316.47
7.2.300.0030.01316.78
7.2.290.0070.01416.36
7.2.130.0080.00316.77
7.2.120.0070.00716.76
7.2.110.0080.00016.94
7.2.100.0060.00616.92
7.2.90.0080.00416.68
7.2.80.0050.00316.66
7.2.70.0140.00016.72
7.2.60.0080.00316.51
7.2.50.0080.00517.02
7.2.40.0030.00916.66
7.2.30.0080.00816.75
7.2.20.0040.01116.50
7.2.10.0090.00316.68
7.2.00.0050.00618.07
7.1.250.0000.01115.53
7.1.200.0000.01115.82
7.1.100.0160.00018.14
7.1.70.0000.00717.22
7.1.60.0000.01719.50
7.1.50.0080.00316.90
7.1.00.0070.07322.36
7.0.200.0050.00515.02
7.0.140.0070.07021.93
7.0.60.0070.06019.88
7.0.50.0070.04317.80
7.0.40.0130.08020.06
7.0.30.0200.05720.19
7.0.20.0330.06720.04
7.0.10.0070.08720.10
7.0.00.0030.04720.09
5.6.280.0000.07020.99
5.6.210.0000.07320.60
5.6.200.0070.08318.08
5.6.190.0030.08320.27
5.6.180.0270.07720.60
5.6.170.0300.07320.45
5.6.160.0030.04720.48
5.6.150.0100.04318.12
5.6.140.0100.06718.21
5.6.130.0030.08018.16
5.6.120.0130.04320.98
5.6.110.0070.06721.13
5.6.100.0030.09020.94
5.6.90.0070.06721.02
5.6.80.0030.05320.47
5.6.70.3200.03320.51
5.5.350.0070.07020.46
5.5.340.0130.07317.95
5.5.330.0070.08720.25
5.5.320.0030.06320.34
5.5.310.0300.07720.13
5.5.300.0030.05717.95
5.5.290.0070.04718.01
5.5.280.0100.08020.86
5.5.270.0100.07020.75
5.5.260.0130.03320.89
5.5.250.0070.05720.45
5.5.240.0230.08020.25
5.4.450.0270.05719.28
5.4.440.0930.05019.58
5.4.430.0800.05019.45
5.4.420.1100.06019.09
5.4.410.0970.06319.45
5.4.400.0170.06018.77
5.4.390.0300.07318.44
5.4.380.0170.06318.70
5.4.370.0270.06318.68
5.4.360.0170.06018.68
5.4.350.0200.05718.69
5.4.340.0200.08018.70
5.4.320.0300.07318.67
5.4.310.0230.05018.54
5.4.300.0200.05718.70
5.4.290.0030.07018.44
5.4.280.0230.05018.62
5.4.270.0230.05318.57
5.4.260.0230.06318.50
5.4.250.0230.05318.70
5.4.240.0270.06318.64
5.4.230.0200.06018.57
5.4.220.0200.05318.72
5.4.210.0130.06318.50
5.4.200.0170.06016.53
5.4.190.0230.06318.68
5.4.180.0300.05318.66
5.4.170.0370.05018.46
5.4.160.0270.05718.66
5.4.150.0300.04318.49
5.4.140.0170.05716.28
5.4.130.0270.05316.16
5.4.120.0270.04716.30
5.4.110.0230.05016.14
5.4.100.0170.05716.16
5.4.90.0230.04716.20
5.4.80.0230.04716.14
5.4.70.0130.06016.17
5.4.60.0230.04716.34
5.4.50.0330.06016.19
5.4.40.0330.06016.04
5.4.30.0230.06716.11
5.4.20.0430.06316.15
5.4.10.0230.06016.25
5.4.00.0130.06715.75
5.3.290.0200.07714.55
5.3.280.0170.08014.59
5.3.270.0230.07714.51
5.3.260.0230.05314.60
5.3.250.0370.05314.57
5.3.240.0270.06314.52
5.3.230.0130.06314.54
5.3.220.0230.05714.66
5.3.210.0270.04714.65
5.3.200.0230.05314.63
5.3.190.0300.04314.56
5.3.180.0270.06314.57
5.3.170.0200.06314.66
5.3.160.0200.05014.52
5.3.150.0170.05714.55
5.3.140.0200.06014.64
5.3.130.0170.06714.53
5.3.120.0100.07014.54
5.3.110.0230.05314.57
5.3.100.0300.04714.03
5.3.90.0300.05014.01
5.3.80.0300.04314.00
5.3.70.0130.06014.09
5.3.60.0170.05313.98
5.3.50.0170.06313.89
5.3.40.0230.05713.89
5.3.30.0170.05314.00
5.3.20.0230.06013.67
5.3.10.0130.06013.62
5.3.00.0130.06313.66
5.2.170.0200.04011.20
5.2.160.0100.05011.18
5.2.150.0170.04711.07
5.2.140.0170.04311.20
5.2.130.0130.04311.15
5.2.120.0000.05711.04
5.2.110.0200.04311.18
5.2.100.0230.04311.06
5.2.90.0130.05711.14
5.2.80.0170.05011.09
5.2.70.0100.05011.08
5.2.60.0230.03711.09
5.2.50.0230.05310.94
5.2.40.0170.04010.97
5.2.30.0100.05311.01
5.2.20.0170.05010.98
5.2.10.0170.03710.91
5.2.00.0100.05010.81
5.1.60.0170.03310.06
5.1.50.0170.03310.11
5.1.40.0200.03310.04
5.1.30.0230.04010.30
5.1.20.0170.03710.40
5.1.10.0070.05710.13
5.1.00.0170.05010.10
5.0.50.0130.0378.60
5.0.40.0130.0338.50
5.0.30.0100.0578.23
5.0.20.0030.0438.34
5.0.10.0170.0238.34
5.0.00.0100.0478.18
4.4.90.0130.0205.91
4.4.80.0070.0275.89
4.4.70.0130.0205.85
4.4.60.0070.0235.85
4.4.50.0070.0235.82
4.4.40.0100.0375.87
4.4.30.0130.0175.86
4.4.20.0100.0305.96
4.4.10.0030.0305.93
4.4.00.0070.0405.92
4.3.110.0100.0205.84
4.3.100.0130.0175.79
4.3.90.0130.0235.84
4.3.80.0070.0475.80
4.3.70.0100.0205.82
4.3.60.0030.0275.82
4.3.50.0100.0205.77
4.3.40.0070.0335.75
4.3.30.0100.0175.20
4.3.20.0100.0175.20
4.3.10.0030.0235.20
4.3.00.0030.0236.98

preferences:
49.78 ms | 400 KiB | 5 Q