3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x($ip_address) { if ($ip_address !== null) return $ip_address ? $ip_address : null; } echo x(123);

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.0140.00718.30
8.3.50.0120.00621.02
8.3.40.0150.00018.67
8.3.30.0070.00720.36
8.3.20.0140.00020.18
8.3.10.0080.00021.96
8.3.00.0000.00722.46
8.2.180.0120.00316.32
8.2.170.0040.01122.96
8.2.160.0030.01320.30
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0000.00819.56
8.2.110.0000.01021.02
8.2.100.0080.00417.72
8.2.90.0000.00918.99
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0070.00017.93
8.2.50.0030.00618.10
8.2.40.0020.00518.22
8.2.30.0040.00418.04
8.2.20.0020.00517.59
8.2.10.0070.00017.47
8.2.00.0040.00417.52
8.1.280.0100.00325.92
8.1.270.0090.00020.26
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0000.00923.84
8.1.230.0050.00517.64
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.10
8.1.180.0020.00518.10
8.1.170.0040.00418.27
8.1.160.0060.00322.03
8.1.150.0040.00418.47
8.1.140.0000.00917.37
8.1.130.0000.00717.66
8.1.120.0000.00717.34
8.1.110.0040.00317.34
8.1.100.0000.00817.29
8.1.90.0040.00417.23
8.1.80.0080.00017.35
8.1.70.0030.00317.25
8.1.60.0060.00317.40
8.1.50.0070.00017.34
8.1.40.0000.00817.34
8.1.30.0000.00817.55
8.1.20.0040.00417.48
8.1.10.0000.00717.46
8.1.00.0000.00817.36
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00718.41
8.0.270.0000.00717.11
8.0.260.0000.00816.77
8.0.250.0030.00316.91
8.0.240.0060.00316.78
8.0.230.0030.00316.80
8.0.220.0070.00016.76
8.0.210.0000.00716.64
8.0.200.0000.00716.81
8.0.190.0080.00016.72
8.0.180.0040.00416.77
8.0.170.0040.00416.79
8.0.160.0000.00716.65
8.0.150.0000.00716.66
8.0.140.0060.00316.60
8.0.130.0060.00013.12
8.0.120.0000.00716.67
8.0.110.0040.00416.73
8.0.100.0040.00416.75
8.0.90.0070.00016.75
8.0.80.0110.00316.75
8.0.70.0040.00416.71
8.0.60.0050.00216.81
8.0.50.0030.00516.57
8.0.30.0110.00816.92
8.0.20.0060.01217.40
8.0.10.0050.00216.70
8.0.00.0070.01216.60
7.4.330.0000.00515.00
7.4.320.0030.00316.44
7.4.300.0000.00616.45
7.4.290.0090.00016.47
7.4.280.0030.00316.45
7.4.270.0030.00316.44
7.4.260.0040.00416.51
7.4.250.0000.00716.42
7.4.240.0020.00516.46
7.4.230.0030.00316.54
7.4.220.0100.01616.64
7.4.210.0070.01016.56
7.4.200.0000.00716.36
7.4.190.0080.00016.60
7.4.160.0150.00316.46
7.4.150.0180.00617.40
7.4.140.0130.00517.86
7.4.130.0090.00816.42
7.4.120.0100.00816.63
7.4.110.0060.01816.30
7.4.100.0130.00916.35
7.4.90.0120.00616.48
7.4.80.0100.00719.39
7.4.70.0070.01116.58
7.4.60.0110.00616.38
7.4.50.0020.00216.31
7.4.40.0050.00522.77
7.4.30.0030.01716.44
7.4.00.0040.01115.05
7.3.330.0020.00213.30
7.3.320.0030.00313.32
7.3.310.0070.00016.30
7.3.300.0030.00316.27
7.3.290.0030.01016.32
7.3.280.0100.00516.25
7.3.270.0060.01017.40
7.3.260.0120.00916.23
7.3.250.0120.00416.19
7.3.240.0060.01016.38
7.3.230.0030.01316.39
7.3.210.0180.00416.43
7.3.200.0070.01319.39
7.3.190.0120.01016.37
7.3.180.0080.00816.33
7.3.170.0130.00316.39
7.3.160.0060.01116.39
7.3.120.0060.01214.87
7.3.10.0100.00315.98
7.3.00.0090.00316.55
7.2.330.0060.01216.49
7.2.320.0120.00916.20
7.2.310.0080.00816.67
7.2.300.0100.00716.45
7.2.290.0000.02416.48
7.2.130.0060.01016.71
7.2.120.0090.00616.73
7.2.110.0040.00816.71
7.2.100.0070.00716.67
7.2.90.0110.00316.80
7.2.80.0120.00616.30
7.2.70.0060.00316.69
7.2.60.0050.01016.81
7.2.50.0150.00416.69
7.2.40.0170.00016.75
7.2.30.0120.00016.52
7.2.20.0090.00316.79
7.2.10.0090.00916.44
7.2.00.0060.00718.10
7.1.250.0090.00615.65
7.1.100.0120.00817.93
7.1.70.0030.00317.04
7.1.60.0070.01719.50
7.1.50.0030.01716.92
7.1.00.0030.07322.36
7.0.200.0030.00716.73
7.0.140.0030.07322.18
7.0.110.0030.06720.03
7.0.100.0070.05019.95
7.0.90.0070.08719.94
7.0.80.0070.06319.91
7.0.70.0070.08019.93
7.0.60.0070.06319.93
7.0.50.0070.07019.88
7.0.40.0170.07319.87
7.0.30.0070.08319.68
7.0.20.0070.03719.80
7.0.10.0000.07319.66
7.0.00.0030.04019.72
5.6.280.0030.07321.08
5.6.260.0070.06720.63
5.6.250.0200.05320.69
5.6.240.0100.07720.70
5.6.230.0030.05320.64
5.6.220.0130.07020.55
5.6.210.0000.06720.58
5.6.200.0000.07020.65
5.6.190.0030.05320.64
5.6.180.0030.04020.66
5.6.170.0030.08720.56
5.6.160.0100.07720.71
5.6.150.0100.04720.47
5.6.140.0130.07320.57
5.6.130.0070.07720.84
5.6.120.0070.07320.64
5.6.110.0070.05320.68
5.6.100.0170.07020.83
5.6.90.0030.07320.57
5.6.80.0070.07719.98
5.6.70.0130.05720.02
5.6.60.0070.08320.03
5.6.50.0000.04720.01
5.6.40.0130.06719.97
5.6.30.0030.05319.90
5.6.20.0030.04320.18
5.6.10.0070.06719.97
5.6.00.0070.07020.05
5.5.380.0070.06317.68
5.5.370.0070.06717.70
5.5.360.0030.08017.69
5.5.350.0170.06317.52
5.5.340.0030.03718.23
5.5.330.0070.06018.09
5.5.320.0130.06717.91
5.5.310.0200.06318.11
5.5.300.0170.07718.09
5.5.290.0070.08018.09
5.5.280.0030.05718.23
5.5.270.0070.06718.07
5.5.260.0070.07717.90
5.5.250.0030.06718.03
5.5.240.0100.07017.61
5.5.230.0000.03717.50
5.5.220.0000.04317.63
5.5.210.0100.07317.61
5.5.200.0070.07017.19
5.5.190.0130.06017.45
5.5.180.0100.06717.45
5.5.160.0070.06017.45
5.5.150.0030.03317.42
5.5.140.0130.02317.47
5.5.130.0070.05017.45
5.5.120.0100.07317.28
5.5.110.0030.07017.60
5.5.100.0030.05717.09
5.5.90.0130.06317.30
5.5.80.0100.07717.16
5.5.70.0100.06017.15
5.5.60.0070.06017.07
5.5.50.0000.05717.34
5.5.40.0030.06717.07
5.5.30.0000.05317.46
5.5.20.0070.08317.14
5.5.10.0030.04017.37
5.5.00.0030.04017.36
5.4.450.0170.07719.51
5.4.440.0070.06719.64
5.4.430.0030.06319.49
5.4.420.0030.07019.50
5.4.410.0030.04019.53
5.4.400.0100.07019.00
5.4.390.0030.04719.02
5.4.380.0000.03319.09
5.4.370.0070.06319.07
5.4.360.0030.07319.31
5.4.350.0030.08018.99
5.4.340.0000.08319.00
5.4.320.0070.04719.00
5.4.310.0100.06019.24
5.4.300.0030.06719.13
5.4.290.0100.03719.33
5.4.280.0030.08719.05
5.4.270.0000.08019.09
5.4.260.0000.08018.96
5.4.250.0030.04019.18
5.4.240.0100.07719.33
5.4.230.0030.08718.97
5.4.220.0070.07019.00
5.4.210.0000.04019.30
5.4.200.0030.05318.99
5.4.190.0100.07019.00
5.4.180.0070.05718.99
5.4.170.0030.05719.30
5.4.160.0070.07718.97
5.4.150.0070.07319.14
5.4.140.0100.06316.53
5.4.130.0070.03016.53
5.4.120.0030.07716.58
5.4.110.0130.07016.31
5.4.100.0070.05716.36
5.4.90.0030.03716.43
5.4.80.0030.07716.49
5.4.70.0100.08316.29
5.4.60.0000.05016.64
5.4.50.0070.07316.44
5.4.40.0070.03316.49
5.4.30.0070.05316.41
5.4.20.0070.03016.39
5.4.10.0170.02016.22
5.4.00.0030.04716.03
5.3.290.0100.07314.80
5.3.280.0070.04714.55
5.3.270.0000.04014.68
5.3.260.0070.05714.68
5.3.250.0100.06714.63
5.3.240.0100.06314.69
5.3.230.0070.06714.72
5.3.220.0100.07314.69
5.3.210.0170.06714.55
5.3.200.0030.04014.67
5.3.190.0030.07014.52
5.3.180.0070.05314.72
5.3.170.0030.05714.42
5.3.160.0070.07014.64
5.3.150.0100.07014.57
5.3.140.0070.05714.68
5.3.130.0070.06714.63
5.3.120.0000.04014.56
5.3.110.0030.06714.57
5.3.100.0070.03714.00
5.3.90.0030.03714.25
5.3.80.0070.03314.03
5.3.70.0070.03014.07
5.3.60.0070.03314.09
5.3.50.0000.04313.93
5.3.40.0000.04313.90
5.3.30.0070.04013.90
5.3.20.0030.03013.69
5.3.10.0000.04313.75
5.3.00.0000.03713.48
5.2.170.0000.02712.06
5.2.160.0070.02712.06
5.2.150.0000.03312.06
5.2.140.0070.05012.06
5.2.130.0070.05712.06
5.2.120.0100.03712.06
5.2.110.0000.03012.06
5.2.100.0030.02712.06
5.2.90.0070.03712.06
5.2.80.0000.06712.06
5.2.70.0000.03012.06
5.2.60.0000.03012.06
5.2.50.0000.03312.06
5.2.40.0070.05012.06
5.2.30.0000.03312.06
5.2.20.0030.05012.06
5.2.10.0070.05012.06
5.2.00.0030.03712.06
5.1.60.0030.02712.06
5.1.50.0030.05312.06
5.1.40.0030.02712.06
5.1.30.0030.03012.06
5.1.20.0030.02012.06
5.1.10.0030.04312.06
5.1.00.0030.02312.06
5.0.50.0030.02012.06
5.0.40.0030.01312.06
5.0.30.0030.04312.06
5.0.20.0100.03712.06
5.0.10.0000.02012.06
5.0.00.0000.03312.06
4.4.90.0030.01012.06
4.4.80.0000.03312.06
4.4.70.0000.03012.06
4.4.60.0000.03312.06
4.4.50.0030.03312.06
4.4.40.0100.04012.06
4.4.30.0000.01712.06
4.4.20.0000.03312.06
4.4.10.0030.01312.06
4.4.00.0070.04012.06
4.3.110.0000.01312.06
4.3.100.0030.03312.06
4.3.90.0030.02012.06
4.3.80.0030.05012.06
4.3.70.0030.02312.06
4.3.60.0030.02312.06
4.3.50.0070.01712.06
4.3.40.0000.04712.06
4.3.30.0000.02312.06
4.3.20.0000.01712.06
4.3.10.0030.02012.06
4.3.00.0030.01712.06

preferences:
46.66 ms | 401 KiB | 5 Q