3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'www.example.com'; $domain = explode('.',str_replace(['http://','https://'],'',$url))[0]; var_dump($domain);

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.5.10.0110.00816.61
8.5.00.0120.01019.97
8.4.160.0130.01021.53
8.4.150.0010.00014.05
8.4.140.0140.00617.54
8.4.130.0150.00317.53
8.4.120.0060.00323.88
8.4.110.0140.00622.47
8.4.100.0060.00618.80
8.4.90.0050.00518.77
8.4.80.0110.00818.49
8.4.70.0130.01017.84
8.4.60.0160.00418.86
8.4.50.0130.01018.63
8.4.40.0030.01617.69
8.4.30.0170.00720.42
8.4.20.0070.01117.75
8.4.10.0060.00319.42
8.3.290.0130.00720.81
8.3.280.0120.00818.28
8.3.270.0120.00816.36
8.3.260.0040.00816.43
8.3.250.0130.00618.79
8.3.240.0130.00517.19
8.3.230.0140.00616.52
8.3.220.0060.00220.48
8.3.210.0100.00816.45
8.3.200.0050.00416.53
8.3.190.0110.00917.07
8.3.180.0110.00517.09
8.3.170.0040.01418.60
8.3.160.0030.01616.98
8.3.150.0140.00417.17
8.3.140.0160.00316.39
8.3.130.0000.00918.53
8.3.120.0000.00920.28
8.3.110.0030.00618.18
8.3.100.0100.00716.49
8.3.90.0150.00626.77
8.3.80.0030.00616.38
8.3.70.0140.00716.58
8.3.60.0040.01118.43
8.3.50.0090.00618.15
8.3.40.0100.00618.72
8.3.30.0110.01118.72
8.3.20.0060.00324.18
8.3.10.0080.00024.66
8.3.00.0030.00626.16
8.2.300.0070.00222.13
8.2.290.0070.01120.40
8.2.280.0130.00620.22
8.2.270.0140.00417.40
8.2.260.0040.01116.38
8.2.250.0050.00318.64
8.2.240.0080.00016.51
8.2.230.0130.00320.94
8.2.220.0030.00724.06
8.2.210.0050.00326.77
8.2.200.0030.00916.38
8.2.190.0110.00716.63
8.2.180.0080.00825.92
8.2.170.0090.00618.84
8.2.160.0100.00322.96
8.2.150.0050.00225.66
8.2.140.0060.00324.66
8.2.130.0030.00526.16
8.2.120.0040.00426.16
8.2.110.0070.00421.12
8.2.100.0060.00617.91
8.2.90.0050.00319.27
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0030.00618.04
8.2.50.0000.00818.07
8.2.40.0000.00818.03
8.2.30.0030.00517.62
8.2.20.0040.00420.62
8.2.10.0000.00717.48
8.2.00.0060.00319.18
8.1.340.0120.00917.42
8.1.330.0070.01121.75
8.1.320.0090.01115.96
8.1.310.0090.00016.81
8.1.300.0100.00716.14
8.1.290.0090.00030.84
8.1.280.0120.00325.92
8.1.270.0000.00823.99
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0050.00522.06
8.1.230.0110.00419.02
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0050.00318.84
8.1.160.0050.00218.83
8.1.150.0070.00018.52
8.1.140.0000.00717.39
8.1.130.0000.00820.27
8.1.120.0030.00517.43
8.1.110.0050.00317.29
8.1.100.0030.00317.30
8.1.90.0020.00517.42
8.1.80.0000.00817.40
8.1.70.0030.00317.40
8.1.60.0030.00517.49
8.1.50.0000.00817.34
8.1.40.0000.00817.49
8.1.30.0000.00817.58
8.1.20.0000.00817.60
8.1.10.0040.00417.37
8.1.00.0140.00017.50
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0030.00316.77
8.0.260.0030.00318.38
8.0.250.0050.00316.79
8.0.240.0070.00016.86
8.0.230.0080.00016.85
8.0.220.0000.00716.89
8.0.210.0060.00016.73
8.0.200.0070.00016.90
8.0.190.0000.00916.86
8.0.180.0020.00516.81
8.0.170.0030.00616.86
8.0.160.0000.00916.80
8.0.150.0040.00416.66
8.0.140.0030.00716.68
8.0.130.0130.00516.87
8.0.120.0160.00316.67
8.0.110.0190.00016.69
8.0.100.0190.00016.83
8.0.90.0140.00516.69
8.0.80.0170.00316.64
8.0.70.0190.00016.69
8.0.60.0120.00816.71
8.0.50.0190.00016.65
8.0.30.0150.00416.75
8.0.20.0160.00416.78
8.0.10.0210.00016.91
8.0.00.0080.00416.84
7.4.330.0030.00315.55
7.4.320.0000.00716.54
7.4.300.0000.00716.45
7.4.290.0000.00716.48
7.4.280.0000.00716.32
7.4.270.0040.00416.39
7.4.260.0130.01016.43
7.4.250.0180.00516.27
7.4.240.0200.00016.42
7.4.230.0210.00016.54
7.4.220.0130.00716.51
7.4.210.0150.00316.43
7.4.200.0150.00016.34
7.4.190.0050.01016.57
7.4.180.0130.00516.53
7.4.160.0080.01116.40
7.4.150.0090.00316.54
7.4.140.0060.00315.98
7.4.130.0000.00916.07
7.4.120.0040.00716.16
7.4.110.0100.00016.33
7.4.100.0090.00316.27
7.4.90.0080.00416.36
7.4.80.0100.00016.27
7.4.70.0070.00216.45
7.4.60.0060.00516.37
7.4.50.0110.00516.14
7.4.40.0190.00016.23
7.4.30.0110.00716.32
7.4.20.0130.00516.38
7.4.10.0090.00916.33
7.4.00.0110.00416.39
7.3.330.0100.00716.24
7.3.320.0070.00716.28
7.3.310.0120.00316.09
7.3.300.0120.00616.11
7.3.290.0140.00316.05
7.3.280.0090.00516.07
7.3.270.0150.00016.03
7.3.260.0070.00716.22
7.3.250.0090.00316.26
7.3.240.0030.01115.98
7.3.230.0100.00716.05
7.3.220.0130.00316.00
7.3.210.0110.00516.01
7.3.200.0080.00816.05
7.3.190.0150.00016.05
7.3.180.0170.00016.09
7.3.170.0100.00616.18
7.3.160.0080.00416.19
7.3.150.0190.00015.92
7.3.140.0170.00415.97
7.3.130.0150.00316.18

preferences:
35.87 ms | 403 KiB | 5 Q