3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Dan"; $first_name = "Subscriber"; $nameParts = explode(" ", $name); if($nameParts && $nameParts[0]) { $first_name = ucfirst($nameParts[0]); } var_dump($nameParts); var_dump($first_name);

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.00916.50
8.3.50.0120.00822.81
8.3.40.0090.00618.72
8.3.30.0040.01119.13
8.3.20.0080.00020.34
8.3.10.0030.00723.53
8.3.00.0040.00419.26
8.2.180.0150.00318.52
8.2.170.0170.00022.96
8.2.160.0120.00320.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0100.01026.16
8.2.120.0040.00420.93
8.2.110.0050.00520.20
8.2.100.0070.00718.34
8.2.90.0060.00319.25
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0050.00318.04
8.2.50.0060.00318.07
8.2.40.0050.00319.97
8.2.30.0000.00718.20
8.2.20.0000.00917.73
8.2.10.0030.00618.12
8.2.00.0030.00517.86
8.1.280.0110.00425.92
8.1.270.0030.00622.01
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.83
8.1.230.0070.00419.02
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0070.00717.35
8.1.190.0050.00316.98
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0000.00722.01
8.1.150.0020.00518.76
8.1.140.0030.00517.32
8.1.130.0030.00517.87
8.1.120.0070.00017.49
8.1.110.0030.00317.37
8.1.100.0020.00517.45
8.1.90.0030.00317.41
8.1.80.0040.00417.43
8.1.70.0030.00317.34
8.1.60.0000.00917.54
8.1.50.0000.00717.44
8.1.40.0030.00617.49
8.1.30.0040.00417.50
8.1.20.0030.00617.65
8.1.10.0000.00817.54
8.1.00.0070.00017.32
8.0.300.0050.00218.77
8.0.290.0000.00816.63
8.0.280.0030.00318.45
8.0.270.0000.00817.26
8.0.260.0030.00317.27
8.0.250.0000.00616.99
8.0.240.0030.00316.97
8.0.230.0000.00716.81
8.0.220.0070.00016.88
8.0.210.0060.00016.91
8.0.200.0040.00416.92
8.0.190.0040.00416.98
8.0.180.0000.00716.88
8.0.170.0000.00816.91
8.0.160.0040.00416.93
8.0.150.0080.00016.78
8.0.140.0000.00716.68
8.0.130.0000.00613.34
8.0.120.0040.00416.84
8.0.110.0050.00216.84
8.0.100.0080.00016.78
8.0.90.0080.00016.86
8.0.80.0120.00616.88
8.0.70.0000.00816.91
8.0.60.0040.00416.76
8.0.50.0040.00316.95
8.0.30.0130.01017.04
8.0.20.0080.01117.40
8.0.10.0070.00016.86
8.0.00.0030.01616.88
7.4.330.0000.00515.11
7.4.320.0060.00016.48
7.4.300.0060.00016.55
7.4.290.0000.00716.50
7.4.280.0050.00516.48
7.4.270.0040.00416.66
7.4.260.0070.00316.48
7.4.250.0060.00316.57
7.4.240.0020.00516.47
7.4.230.0000.00716.67
7.4.220.0130.01316.36
7.4.210.0000.01516.60
7.4.200.0030.00516.35
7.4.160.0070.01316.45
7.4.150.0150.00417.40
7.4.140.0070.00917.86
7.4.130.0140.00716.50
7.4.120.0090.00816.51
7.4.110.0120.01216.34
7.4.100.0090.00916.56
7.4.90.0100.00716.49
7.4.80.0090.00919.39
7.4.70.0110.00716.40
7.4.60.0070.01416.36
7.4.50.0060.00316.55
7.4.40.0090.00916.45
7.4.30.0060.00916.47
7.4.00.0000.01315.22
7.3.330.0060.00013.14
7.3.320.0030.00312.94
7.3.310.0030.00316.15
7.3.300.0040.00416.11
7.3.290.0000.01516.24
7.3.280.0070.00816.23
7.3.270.0070.01117.40
7.3.260.0110.00716.66
7.3.250.0040.01316.43
7.3.240.0060.01316.41
7.3.230.0060.01016.41
7.3.210.0110.00616.53
7.3.200.0120.00819.39
7.3.190.0090.01316.56
7.3.180.0080.00816.53
7.3.170.0060.01016.46
7.3.160.0070.01316.63
7.3.10.0080.00016.48
7.3.00.0160.00616.53
7.2.330.0070.01016.65
7.2.320.0030.01916.30
7.2.310.0070.01016.67
7.2.300.0140.00316.39
7.2.290.0090.00916.50
7.2.130.0030.00916.90
7.2.120.0080.00516.63
7.2.110.0050.00916.59
7.2.100.0070.00616.33
7.2.90.0030.00616.76
7.2.80.0100.00616.67
7.2.70.0070.00516.66
7.2.60.0060.00716.76
7.2.50.0050.00716.76
7.2.40.0090.00716.53
7.2.30.0050.00916.70
7.2.20.0030.01016.82
7.2.10.0040.00416.87
7.2.00.0060.00816.99
7.1.250.0080.00015.62
7.1.240.0060.00715.79
7.1.230.0090.00615.91
7.1.220.0070.00715.46
7.1.210.0080.00315.87
7.1.200.0020.01015.71
7.1.190.0070.00715.47
7.1.180.0000.00915.51
7.1.170.0000.01215.39
7.1.160.0060.00315.84
7.1.150.0000.01115.72
7.1.140.0070.00715.77
7.1.130.0070.00715.92
7.1.120.0030.01015.62
7.1.110.0050.00515.75
7.1.100.0100.00715.63
7.1.90.0060.00615.95
7.1.80.0040.00815.86
7.1.70.0050.00716.49
7.1.60.0050.01317.62
7.1.50.0070.01116.33
7.1.40.0090.00615.95
7.1.30.0110.00015.66
7.1.20.0030.00315.79
7.1.10.0070.00315.87
7.1.00.0040.04419.01
7.0.320.0030.01015.36
7.0.310.0090.00615.33
7.0.300.0040.00415.15
7.0.290.0060.00915.29
7.0.280.0060.00615.29
7.0.270.0090.00615.34
7.0.260.0060.00615.33
7.0.250.0040.00715.45
7.0.240.0000.01415.32
7.0.230.0040.00815.56
7.0.220.0040.00815.18
7.0.210.0000.01215.51
7.0.200.0050.00716.09
7.0.190.0070.00015.39
7.0.180.0030.01015.38
7.0.170.0000.01315.46
7.0.160.0060.00915.46
7.0.150.0060.00315.57
7.0.140.0060.03818.66
7.0.130.0120.00315.27
7.0.120.0040.01115.33
7.0.110.0070.00415.43
7.0.100.0060.00315.16
7.0.90.0060.00915.50
7.0.80.0060.00315.27
7.0.70.0030.01215.14
7.0.60.0100.03817.60
7.0.50.0050.04416.53
7.0.40.0050.02716.80
7.0.30.0180.03116.77
7.0.20.0110.02816.67
7.0.10.0070.04016.61
7.0.00.0030.02916.87
5.6.380.0060.00614.11
5.6.370.0110.00414.40
5.6.360.0100.00614.31
5.6.350.0080.00014.39
5.6.340.0040.00414.28
5.6.330.0000.00814.41
5.6.320.0040.00714.23
5.6.310.0030.00614.17
5.6.300.0030.00714.56
5.6.290.0030.00614.37
5.6.280.0040.04017.66
5.6.270.0070.00714.46
5.6.260.0100.00314.55
5.6.250.0030.01014.16
5.6.240.0070.00314.41
5.6.230.0060.00614.54
5.6.220.0000.01214.41
5.6.210.0080.04217.43
5.6.200.0030.02916.09
5.6.190.0050.02517.54
5.6.180.0150.04517.46
5.6.170.0200.03317.29
5.6.160.0080.04617.49
5.6.150.0080.02216.24
5.6.140.0070.04416.14
5.6.130.0100.03816.15
5.6.120.0060.04517.67
5.6.110.0060.02517.48
5.6.100.0040.04917.61
5.6.90.0030.03717.59
5.6.80.0080.02917.25
5.6.70.0030.01314.07
5.6.60.0110.00314.45
5.6.50.0130.00014.20
5.6.40.0030.00614.16
5.6.30.0030.00514.42
5.6.20.0090.00314.05
5.6.10.0060.00913.98
5.6.00.0040.01114.27
5.5.380.0100.00011.27
5.5.370.0060.00611.27
5.5.360.0050.00511.27
5.5.350.2150.02315.86
5.5.340.0060.04314.59
5.5.330.0060.04615.87
5.5.320.0200.04215.77
5.5.310.0080.03115.74
5.5.300.0050.04314.64
5.5.290.0080.03714.59
5.5.280.0060.04016.02
5.5.270.0030.02416.02
5.5.260.0030.02316.01
5.5.250.0020.02515.88
5.5.240.0160.04015.64
5.5.230.0080.00311.27
5.5.220.0090.00311.27
5.5.210.0060.00611.27
5.5.200.0040.00711.27
5.5.190.0030.00711.27
5.5.180.0110.00011.27
5.5.170.0000.01013.96
5.5.160.0070.00311.27
5.5.150.0040.00411.27
5.5.140.0040.00711.27
5.5.130.0030.00611.27
5.5.120.0050.00511.27
5.5.110.0040.00811.27
5.5.100.0090.00311.27
5.5.90.0000.00511.27
5.5.80.0090.00011.27
5.5.70.0030.00611.27
5.5.60.0000.00811.27
5.5.50.0030.01011.27
5.5.40.0050.00611.27
5.5.30.0040.00711.27
5.5.20.0040.00411.27
5.5.10.0040.00711.27
5.5.00.0050.00511.27
5.4.450.0230.02815.38
5.4.440.0170.02615.20
5.4.430.0120.02915.34
5.4.420.0130.02315.36
5.4.410.0200.02415.27
5.4.400.0200.02215.03
5.4.390.0120.02315.17
5.4.380.0110.03014.92
5.4.370.0100.02914.88
5.4.360.0100.03415.01
5.4.350.0130.02814.88
5.4.340.0030.03514.87
5.4.330.0080.00311.27
5.4.320.0060.02411.86
5.4.310.0050.03011.86
5.4.300.0070.02511.86
5.4.290.0060.02911.86
5.4.280.0040.03811.81
5.4.270.0050.04411.81
5.4.260.0060.02811.81
5.4.250.0030.03011.81
5.4.240.0110.03211.81
5.4.230.0040.03011.80
5.4.220.0040.02511.80
5.4.210.0060.02111.81
5.4.200.0070.02511.81
5.4.190.0070.02211.80
5.4.180.0060.02411.80
5.4.170.0050.01911.81
5.4.160.0090.02111.81
5.4.150.0080.02011.81
5.4.140.0060.01911.65
5.4.130.0070.02011.64
5.4.120.0060.02611.62
5.4.110.0070.01911.62
5.4.100.0040.02411.62
5.4.90.0110.02011.62
5.4.80.0080.02511.62
5.4.70.0080.02011.61
5.4.60.0050.02611.62
5.4.50.0040.02211.62
5.4.40.0090.01811.61
5.4.30.0100.01911.61
5.4.20.0110.01811.61
5.4.10.0100.02411.61
5.4.00.0100.02011.35
5.3.290.0050.02712.04
5.3.280.0070.02611.99
5.3.270.0090.02612.00
5.3.260.0180.02412.00
5.3.250.0110.02512.00
5.3.240.0080.02611.99
5.3.230.0090.02211.99
5.3.220.0080.02311.97
5.3.210.0070.02611.98
5.3.200.0060.02811.97
5.3.190.0050.02211.97
5.3.180.0050.02211.97
5.3.170.0040.02411.97
5.3.160.0050.02311.97
5.3.150.0040.02511.97
5.3.140.0110.02711.96
5.3.130.0100.02511.96
5.3.120.0060.02611.96
5.3.110.0060.02011.96
5.3.100.0070.02111.70
5.3.90.0030.02411.68
5.3.80.0060.02511.67
5.3.70.0040.02111.67
5.3.60.0040.02511.67
5.3.50.0040.02211.63
5.3.40.0060.02011.64
5.3.30.0060.02011.62
5.3.20.0070.01911.50
5.3.10.0040.02011.48
5.3.00.0030.02111.47
5.2.170.0060.01710.22
5.2.160.0040.01910.22
5.2.150.0050.02010.22
5.2.140.0050.01910.22
5.2.130.0050.02110.20
5.2.120.0030.02010.20
5.2.110.0020.02010.21
5.2.100.0050.01910.21
5.2.90.0040.02410.21
5.2.80.0070.02110.20
5.2.70.0060.02210.20
5.2.60.0020.02810.18
5.2.50.0110.01910.16
5.2.40.0070.02310.15
5.2.30.0100.02210.14
5.2.20.0060.02010.13
5.2.10.0070.01810.10
5.2.00.0040.01910.02
5.1.60.0030.0149.67
5.1.50.0030.0199.66
5.1.40.0060.0139.65
5.1.30.0040.0149.83
5.1.20.0060.0149.84
5.1.10.0030.0159.70
5.1.00.0020.0179.70
5.0.50.0020.0148.94
5.0.40.0050.0108.87
5.0.30.0100.0218.78
5.0.20.0140.0138.77
5.0.10.0080.0128.75
5.0.00.0050.0218.75
4.4.90.0070.0118.03
4.4.80.0040.0118.01
4.4.70.0060.0098.01
4.4.60.0040.0098.01
4.4.50.0070.0108.02
4.4.40.0040.0217.99
4.4.30.0040.0148.02
4.4.20.0040.0148.06
4.4.10.0080.0088.06
4.4.00.0050.0178.01
4.3.110.0080.0127.97
4.3.100.0070.0127.97
4.3.90.0050.0137.95
4.3.80.0040.0177.93
4.3.70.0040.0107.95
4.3.60.0020.0137.95
4.3.50.0040.0107.95
4.3.40.0020.0167.90
4.3.30.0030.0087.27
4.3.20.0020.0117.27
4.3.10.0050.0097.24
4.3.00.0020.01113.45

preferences:
44.77 ms | 401 KiB | 5 Q