3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Whatever { public function readMe(Whatever $arg) { if ($arg === null) { echo 'no way'; } else { echo 'bla bla'; } } } $whatever = new Whatever(); $nothing = null; $whatever->readMe($whatever); $whatever->readMe($nothing);

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.0070.00716.63
8.3.50.0110.01022.00
8.3.40.0040.01118.79
8.3.30.0070.00719.05
8.3.20.0070.00020.20
8.3.10.0070.00023.61
8.3.00.0080.00019.51
8.2.180.0080.00818.29
8.2.170.0070.01022.96
8.2.160.0040.01120.58
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0140.00326.16
8.2.120.0040.00422.27
8.2.110.0030.00522.05
8.2.100.0120.00017.80
8.2.90.0040.00419.16
8.2.80.0040.00418.05
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0000.00918.34
8.2.30.0000.00717.90
8.2.20.0000.00717.55
8.2.10.0070.00218.11
8.2.00.0080.00017.73
8.1.280.0040.01125.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.82
8.1.230.0110.00019.14
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0040.00417.51
8.1.180.0050.00318.10
8.1.170.0080.00018.43
8.1.160.0000.00721.86
8.1.150.0040.00418.61
8.1.140.0070.00017.30
8.1.130.0000.00717.73
8.1.120.0070.00017.34
8.1.110.0040.00417.40
8.1.100.0040.00417.37
8.1.90.0070.00017.38
8.1.80.0070.00017.43
8.1.70.0050.00217.30
8.1.60.0050.00317.55
8.1.50.0080.00017.50
8.1.40.0030.00617.50
8.1.30.0040.00417.57
8.1.20.0030.00517.64
8.1.10.0000.00717.45
8.1.00.0040.00417.55
8.0.300.0000.00718.77
8.0.290.0030.00517.16
8.0.280.0030.00318.50
8.0.270.0050.00317.25
8.0.260.0000.00616.93
8.0.250.0000.00716.97
8.0.240.0030.00316.84
8.0.230.0040.00416.94
8.0.220.0030.00316.93
8.0.210.0040.00416.90
8.0.200.0040.00416.86
8.0.190.0040.00416.85
8.0.180.0040.00416.94
8.0.170.0000.00916.97
8.0.160.0000.00816.86
8.0.150.0070.00016.88
8.0.140.0000.00816.82
8.0.130.0030.00313.35
8.0.120.0000.00816.85
8.0.110.0020.00516.71
8.0.100.0000.00716.78
8.0.90.0080.00016.82
8.0.80.0070.01116.94
8.0.70.0000.00816.85
8.0.60.0040.00416.89
8.0.50.0040.00416.82
8.0.30.0150.00317.04
8.0.20.0130.00917.40
8.0.10.0000.00817.05
8.0.00.0080.00916.80
7.4.330.0000.00515.00
7.4.320.0000.00616.56
7.4.300.0060.00016.51
7.4.290.0040.00416.51
7.4.280.0020.00516.63
7.4.270.0030.00316.45
7.4.260.0090.00016.38
7.4.250.0030.00516.57
7.4.240.0040.00416.49
7.4.230.0070.00016.55
7.4.220.0120.00616.64
7.4.210.0070.01016.52
7.4.200.0000.00716.61
7.4.190.0040.00416.65
7.4.160.0070.01016.51
7.4.150.0100.00717.40
7.4.140.0070.01117.86
7.4.130.0060.01016.54
7.4.120.0110.00816.59
7.4.110.0120.00916.63
7.4.100.0100.01116.46
7.4.90.0100.00616.36
7.4.80.0100.01019.39
7.4.70.0030.01316.64
7.4.60.0070.00916.64
7.4.50.0000.00816.61
7.4.40.0090.00622.77
7.4.30.0030.01316.30
7.4.00.0070.00714.92
7.3.330.0060.00013.37
7.3.320.0030.00213.36
7.3.310.0030.00316.58
7.3.300.0000.00716.43
7.3.290.0070.00616.39
7.3.280.0070.00916.38
7.3.270.0090.00917.40
7.3.260.0120.00616.46
7.3.250.0080.01616.46
7.3.240.0030.01916.34
7.3.230.0110.01216.46
7.3.210.0090.01216.60
7.3.200.0030.01519.39
7.3.190.0110.00516.52
7.3.180.0000.01716.39
7.3.170.0060.01516.43
7.3.160.0160.00016.43
7.3.120.0060.00914.90
7.2.330.0060.01216.56
7.2.320.0160.00016.70
7.2.310.0040.01816.48
7.2.300.0110.00816.51
7.2.290.0030.01416.71
7.2.60.0070.00716.66
7.2.00.0070.01119.11
7.1.200.0090.00315.55
7.1.100.0110.00717.77
7.1.70.0030.00616.89
7.1.60.0070.01319.33
7.1.50.0000.01716.87
7.1.00.0030.07722.34
7.0.200.0030.00316.74
7.0.140.0030.07322.09
7.0.60.0130.06320.01
7.0.50.0000.07317.86
7.0.40.0070.05020.16
7.0.30.0300.04320.08
7.0.20.0230.04720.32
7.0.10.0070.07720.24
7.0.00.0030.07320.38
5.6.280.0070.07021.08
5.6.210.0030.08020.71
5.6.200.0030.08318.15
5.6.190.0130.06720.46
5.6.180.0130.08020.54
5.6.170.0230.08320.44
5.6.160.0200.06720.46
5.6.150.0100.06018.22
5.6.140.0030.04718.18
5.6.130.0170.07718.15
5.6.120.0100.04021.00
5.6.110.0130.06720.98
5.6.100.0100.07021.03
5.6.90.0100.06720.96
5.6.80.0030.08020.51
5.6.70.3070.03320.37
5.5.350.0170.07720.45
5.5.340.0070.03717.97
5.5.330.0100.06020.35
5.5.320.0400.07320.52
5.5.310.0170.04020.32
5.5.300.0070.08018.02
5.5.290.0030.04017.95
5.5.280.0070.04720.88
5.5.270.0070.08020.76
5.5.260.0130.07320.87
5.5.250.0070.08020.58
5.5.240.0270.07320.14
5.4.450.2170.03319.55
5.4.440.2000.03319.48
5.4.430.2000.04019.45
5.4.420.0500.05319.52
5.4.410.0000.07319.33
5.4.400.0370.04318.98
5.4.390.1900.04019.22
5.4.380.1870.03718.95
5.4.370.2030.03719.16
5.4.360.2130.04319.14
5.4.350.1900.04019.05
5.4.340.2170.04318.98
5.4.320.2170.04019.31
5.4.310.2200.03319.09
5.4.300.2230.03718.99
5.4.290.2130.03318.87
5.4.280.2070.03719.22
5.4.270.2130.04018.89
5.4.260.2070.03719.22
5.4.250.2170.04319.30
5.4.240.2030.03719.17
5.4.230.2030.03719.14
5.4.220.0730.03718.94
5.4.210.0030.03719.01
5.4.200.0100.07019.05
5.4.190.1670.04318.96
5.4.180.1970.04719.05
5.4.170.2030.04719.14
5.4.160.2100.04018.84
5.4.150.2200.04319.16
5.4.140.2070.03716.40
5.4.130.2100.03716.51
5.4.120.2130.03716.33
5.4.110.2230.04316.58
5.4.100.2070.04316.36
5.4.90.2100.04016.45
5.4.80.1870.03716.50
5.4.70.1930.03716.52
5.4.60.2030.04316.48
5.4.50.1870.04716.25
5.4.40.2100.04016.52
5.4.30.2030.03316.51
5.4.20.2070.03316.50
5.4.10.2370.05016.53
5.4.00.2100.03315.95
5.3.290.2070.04714.74
5.3.280.2130.04314.51
5.3.270.2330.05014.61
5.3.260.2030.04314.57
5.3.250.0230.07014.75
5.3.240.0200.06014.61
5.3.230.0200.03714.66
5.3.220.0230.03314.58
5.3.210.0230.03314.64
5.3.200.0170.04014.68
5.3.190.0200.04714.68
5.3.180.0170.04714.67
5.3.170.0270.05014.47
5.3.160.0270.03714.46
5.3.150.0170.04014.70
5.3.140.0200.04314.54
5.3.130.0230.04014.53
5.3.120.0200.04714.45
5.3.110.0200.05714.66
5.3.100.0270.03014.11
5.3.90.0270.04013.98
5.3.80.0270.04314.03
5.3.70.0230.03314.04
5.3.60.0200.03314.22
5.3.50.0170.04014.02
5.3.40.0170.04013.95
5.3.30.0200.03313.83
5.3.20.0270.03313.92
5.3.10.0300.03313.80
5.3.00.0200.05713.55
5.2.170.0130.04011.16
5.2.160.0230.05011.06
5.2.150.0230.03011.38
5.2.140.0130.03311.05
5.2.130.0200.03311.02
5.2.120.0130.03711.04
5.2.110.0000.03311.08
5.2.100.0100.03311.01
5.2.90.0130.03011.11
5.2.80.0130.03011.00
5.2.70.0170.03011.07
5.2.60.0100.03311.17
5.2.50.0100.03311.10
5.2.40.0170.02310.92
5.2.30.0100.04710.88
5.2.20.0130.03710.88
5.2.10.0170.03710.77
5.2.00.0170.02710.67
5.1.60.0170.02310.08
5.1.50.0200.0179.90
5.1.40.0130.0209.88
5.1.30.0170.05010.26
5.1.20.0130.04710.36
5.1.10.0200.02310.23
5.1.00.0170.05310.30
5.0.50.0100.0438.45
5.0.40.0100.0338.39
5.0.30.0070.0438.13
5.0.20.0130.0338.33
5.0.10.0070.0278.26
5.0.00.0170.0478.04
4.4.90.0070.0237.84
4.4.80.0030.0207.84
4.4.70.0070.0307.84
4.4.60.0030.0207.84
4.4.50.0100.0237.84
4.4.40.0070.0337.84
4.4.30.0100.0237.84
4.4.20.0100.0307.84
4.4.10.0070.0177.84
4.4.00.0070.0477.84
4.3.110.0030.0307.84
4.3.100.0070.0277.84
4.3.90.0030.0137.84
4.3.80.0000.0537.84
4.3.70.0030.0207.84
4.3.60.0100.0207.84
4.3.50.0070.0307.84
4.3.40.0100.0477.84
4.3.30.0070.0137.84
4.3.20.0030.0377.84
4.3.10.0030.0237.84
4.3.00.0070.0207.84

preferences:
48.64 ms | 401 KiB | 5 Q