3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ip_clean(string $ip) : ?string { return implode( '.', array_map( function ($el) { return (int) $el; }, explode('.', $ip) ) ); } echo ip_clean('195.194.213.096'), PHP_EOL;

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.1.130.0030.00317.56
8.1.120.0030.00317.39
8.1.110.0030.00517.40
8.1.100.0000.00717.39
8.1.90.0080.00017.39
8.1.80.0040.00417.39
8.1.70.0030.00517.45
8.1.60.0000.00717.36
8.1.50.0030.00517.36
8.1.40.0030.00517.38
8.1.30.0000.00817.51
8.1.20.0040.00417.50
8.1.10.0050.00317.52
8.1.00.0040.00417.42
8.0.260.0070.00017.25
8.0.250.0000.00816.92
8.0.240.0030.00617.00
8.0.230.0000.00816.95
8.0.220.0000.00716.86
8.0.210.0000.00816.73
8.0.200.0000.00616.86
8.0.190.0000.00716.83
8.0.180.0040.00416.88
8.0.170.0030.00516.88
8.0.160.0040.00416.96
8.0.150.0050.00316.72
8.0.140.0030.00316.92
8.0.130.0030.00313.24
8.0.120.0000.00816.86
8.0.110.0000.00716.83
8.0.100.0030.00317.00
8.0.90.0020.00516.78
8.0.80.0090.00616.93
8.0.70.0050.00216.76
8.0.60.0040.00416.81
8.0.50.0040.00416.85
8.0.30.0110.00917.17
8.0.20.0110.00817.40
8.0.10.0000.00716.91
8.0.00.0130.00516.75
7.4.330.0000.00515.08
7.4.320.0030.00316.54
7.4.300.0050.00216.36
7.4.290.0070.00016.36
7.4.280.0000.01116.52
7.4.270.0070.00016.30
7.4.260.0040.00716.45
7.4.250.0080.00016.51
7.4.240.0060.00316.30
7.4.230.0030.00316.64
7.4.220.0040.00416.30
7.4.210.0060.00916.52
7.4.200.0000.00816.43
7.4.160.0040.01116.51
7.4.150.0110.00617.40
7.4.140.0120.00717.86
7.4.130.0060.01116.45
7.4.120.0080.00916.56
7.4.110.0060.01116.40
7.4.100.0090.01516.63
7.4.90.0070.01016.42
7.4.80.0080.01119.39
7.4.70.0090.01116.49
7.4.60.0070.01116.44
7.4.50.0060.00916.36
7.4.40.0030.01716.32
7.4.30.0060.00916.42
7.3.330.0030.00313.28
7.3.320.0050.00013.28
7.3.310.0000.00716.16
7.3.300.0030.00316.32
7.3.290.0070.01116.34
7.3.280.0090.00616.33
7.3.270.0080.00817.40
7.3.260.0050.01216.49
7.3.250.0100.01016.35
7.3.240.0110.00816.44
7.3.230.0150.00316.54
7.3.210.0030.01416.48
7.3.200.0060.01516.60
7.3.190.0100.00716.51
7.3.180.0030.01316.36
7.3.170.0120.00516.42
7.3.160.0140.00316.47
7.2.330.0110.00816.72
7.2.320.0060.01216.68
7.2.310.0160.00316.50
7.2.300.0060.01016.76
7.2.290.0100.01016.52
7.1.00.0030.07722.28
7.0.80.0270.06719.88
7.0.70.0330.04720.16
7.0.60.0170.06019.81
7.0.50.0100.07020.41
7.0.40.0300.06720.33
7.0.30.0300.05320.40
7.0.20.0130.06320.31
7.0.10.0400.06320.27
7.0.00.0200.06320.28
5.6.230.0100.06320.71
5.6.220.0200.06020.73
5.6.210.0170.05320.56
5.6.200.0200.05321.07
5.6.190.0170.05721.09
5.6.180.0070.06321.13
5.6.170.0170.05021.06
5.6.160.0130.05721.20
5.6.150.0170.05021.10
5.6.140.0100.06021.02
5.6.130.0170.06021.20
5.6.120.0100.06721.08
5.6.110.0130.08021.08
5.6.100.0030.06721.01
5.6.90.0130.05721.06
5.6.80.0200.04720.53
5.6.70.0130.05320.51
5.6.60.0130.05320.47
5.6.50.0070.05720.48
5.6.40.0070.05720.49
5.6.30.0030.06020.47
5.6.20.0100.05320.45
5.6.10.0130.05320.38
5.6.00.0030.06320.41
5.5.370.0070.06720.40
5.5.360.0170.05720.41
5.5.350.0170.05720.48
5.5.340.0070.06320.89
5.5.330.0270.04720.97
5.5.320.0130.05320.84
5.5.310.0200.05020.89
5.5.300.0170.05720.95
5.5.290.0130.06320.83
5.5.280.0100.06320.88
5.5.270.0230.07320.96
5.5.260.0130.05720.94
5.5.250.0030.06720.76
5.5.240.0070.06020.24
5.5.230.0170.05020.30
5.5.220.0130.05020.32
5.5.210.0070.05720.32
5.5.200.0100.05320.29
5.5.190.0170.05020.18
5.5.180.0100.05720.23
5.5.160.0170.04720.21
5.5.150.0030.06020.20
5.5.140.0070.05720.12
5.5.130.0070.05720.25
5.5.120.0200.04320.19
5.5.110.0130.07720.18
5.5.100.0070.06020.18
5.5.90.0170.04720.17
5.5.80.0100.05320.23
5.5.70.0070.06020.13
5.5.60.0170.04720.16
5.5.50.0100.05320.14
5.5.40.0170.04720.12
5.5.30.0070.05720.00
5.5.20.0170.05020.15
5.5.10.0030.06320.05
5.5.00.0130.05320.14

preferences:
13.01 ms | 406 KiB | 5 Q