3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Whatever { public function kissMe(Whatever $arg = null) { if ($arg === null) { echo 'no way'; } else { echo 'smooch'; } } } $whatever = new Whatever(); $nothing = null; $whatever->kissMe($whatever); $whatever->kissMe($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.70.0070.01116.25
8.3.60.0120.00316.38
8.3.50.0140.00917.19
8.3.40.0120.00918.43
8.3.30.0090.00618.58
8.3.20.0060.00318.73
8.3.10.0080.00020.54
8.3.00.0080.00319.13
8.2.180.0130.00318.05
8.2.170.0040.01122.96
8.2.160.0030.01218.62
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00318.84
8.2.110.0060.00320.52
8.2.100.0080.00417.72
8.2.90.0050.00319.26
8.2.80.0040.00419.21
8.2.70.0090.00317.49
8.2.60.0100.00018.00
8.2.50.0000.00918.07
8.2.40.0070.00018.16
8.2.30.0090.00017.99
8.2.20.0040.00419.32
8.2.10.0040.00417.73
8.2.00.0040.00417.59
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0030.01428.09
8.1.240.0060.00323.80
8.1.230.0090.00320.95
8.1.220.0080.00018.77
8.1.210.0050.00319.04
8.1.200.0100.00017.23
8.1.190.0040.00417.28
8.1.180.0090.00018.10
8.1.170.0000.00818.76
8.1.160.0030.00518.80
8.1.150.0040.00418.67
8.1.140.0040.00417.39
8.1.130.0050.00217.88
8.1.120.0030.00317.42
8.1.110.0000.00717.29
8.1.100.0050.00217.40
8.1.90.0070.00017.29
8.1.80.0040.00417.27
8.1.70.0000.00917.39
8.1.60.0070.00017.46
8.1.50.0040.00417.33
8.1.40.0000.00717.47
8.1.30.0050.00317.64
8.1.20.0040.00417.65
8.1.10.0000.00817.53
8.1.00.0030.00517.52
8.0.300.0030.00619.91
8.0.290.0000.00716.75
8.0.280.0070.00018.37
8.0.270.0070.00017.30
8.0.260.0030.00316.72
8.0.250.0000.00716.76
8.0.240.0040.00416.79
8.0.230.0000.00716.92
8.0.220.0000.00816.82
8.0.210.0030.00316.85
8.0.200.0070.00016.86
8.0.190.0050.00316.77
8.0.180.0000.00816.90
8.0.170.0040.00416.71
8.0.160.0070.00016.82
8.0.150.0000.00816.72
8.0.140.0000.00816.67
8.0.130.0030.00313.28
8.0.120.0070.00016.80
8.0.110.0040.00316.85
8.0.100.0000.00716.87
8.0.90.0040.00416.68
8.0.80.0060.00916.73
8.0.70.0000.00716.78
8.0.60.0040.00416.64
8.0.50.0030.00616.80
8.0.30.0070.01017.35
8.0.20.0130.00617.10
8.0.10.0030.00317.01
8.0.00.0070.01316.58
7.4.330.0030.00312.92
7.4.320.0000.00616.39
7.4.300.0030.00316.61
7.4.290.0030.00316.48
7.4.280.0040.00416.63
7.4.270.0000.00816.52
7.4.260.0060.00013.25
7.4.250.0050.00316.57
7.4.240.0000.00616.48
7.4.230.0030.00316.48
7.4.220.0070.01116.46
7.4.210.0060.00916.54
7.4.200.0000.00716.62
7.4.190.0030.00316.35
7.4.160.0070.00716.65
7.4.150.0140.00416.42
7.4.140.0090.00816.51
7.4.130.0170.00016.43
7.4.120.0000.01816.59
7.4.110.0130.00316.48
7.4.100.0110.01116.54
7.4.90.0150.00916.57
7.4.80.0070.01016.65
7.4.70.0200.00316.49
7.4.60.0090.00616.37
7.4.50.0030.00716.53
7.4.40.0060.01216.16
7.4.30.0080.00816.47
7.4.00.0030.01014.90
7.3.330.0060.00013.08
7.3.320.0020.00213.27
7.3.310.0070.00016.23
7.3.300.0000.00616.29
7.3.290.0070.00816.27
7.3.280.0090.00516.24
7.3.270.0120.00916.25
7.3.260.0140.00716.32
7.3.250.0100.00916.42
7.3.240.0100.00716.46
7.3.230.0080.00816.29
7.3.210.0070.01016.40
7.3.200.0060.01619.39
7.3.190.0090.01216.21
7.3.180.0060.01216.23
7.3.170.0090.00616.23
7.3.160.0130.00316.25
7.3.120.0030.00815.05
7.3.10.0000.01016.58
7.3.00.0040.01116.74
7.2.330.0100.01016.84
7.2.320.0100.01316.68
7.2.310.0100.01316.70
7.2.300.0070.01416.41
7.2.290.0140.00316.74
7.2.130.0050.00316.66
7.2.120.0060.00617.10
7.2.110.0040.00416.98
7.2.100.0030.00716.95
7.2.90.0060.00916.77
7.2.80.0030.00616.79
7.2.70.0070.00316.99
7.2.60.0060.00616.80
7.2.50.0060.00316.93
7.2.40.0030.01016.72
7.2.30.0100.00316.71
7.2.20.0030.00616.68
7.2.10.0060.00916.79
7.2.00.0050.01117.96
7.1.250.0000.01315.68
7.1.200.0040.00815.94
7.1.100.0070.00717.84
7.1.70.0030.00716.98
7.1.60.0070.01719.31
7.1.50.0230.01334.77
7.1.00.0000.07322.46
7.0.200.0000.01016.63
7.0.140.0030.06722.09
7.0.120.0100.06722.23
7.0.60.0000.05719.83
7.0.50.0130.06017.84
7.0.40.0100.04020.13
7.0.30.0500.04720.23
7.0.20.0230.05720.12
7.0.10.0030.04720.24
7.0.00.0100.04020.12
5.6.280.0000.07720.89
5.6.210.0130.03320.53
5.6.200.0070.05318.19
5.6.190.0000.05020.41
5.6.180.3030.04320.55
5.6.170.0270.04020.51
5.6.160.0130.07720.54
5.6.150.0030.05018.14
5.6.140.0030.04718.11
5.6.130.0100.07718.14
5.6.120.0000.04321.01
5.6.110.0070.03720.89
5.6.100.0100.08320.93
5.6.90.0100.08020.97
5.6.80.0070.08020.37
5.5.350.0200.06020.42
5.5.340.0070.08017.99
5.5.330.0100.04720.25
5.5.320.0400.07320.35
5.5.310.0200.03720.32
5.5.300.0100.08017.95
5.5.290.0070.07318.08
5.5.280.0200.07020.96
5.5.270.0030.08320.86
5.5.260.0130.07320.68
5.5.250.0030.04020.70
5.5.240.0130.04020.35
5.4.450.0000.04319.57
5.4.440.0000.04019.40
5.4.430.0000.04019.56
5.4.420.0070.03719.30
5.4.410.0030.04019.04
5.4.400.0070.04018.98
5.4.390.0030.03719.08
5.4.380.0000.04719.23
5.4.370.0100.07318.87
5.4.360.0070.05019.24
5.4.350.0030.07719.17
5.4.340.0030.07018.87
5.4.320.0070.07719.24
5.4.310.0100.07319.07
5.4.300.0030.04018.97
5.4.290.0130.05719.15
5.4.280.0070.07719.14
5.4.270.0030.04019.16
5.4.260.0100.06019.02
5.4.250.0130.04319.23
5.4.240.0030.05718.84
5.4.230.0100.04319.11
5.4.220.0130.07319.18
5.4.210.0100.07018.92
5.4.200.0030.05018.84
5.4.190.0070.07719.13
5.4.180.0100.05019.23
5.4.170.0130.07019.07
5.4.160.0070.04318.96
5.4.150.0100.06718.98
5.4.140.0070.07016.40
5.4.130.0030.03716.29
5.4.120.0070.04316.56
5.4.110.0100.04016.37
5.4.100.0030.08016.30
5.4.90.0030.07016.34
5.4.80.0000.06016.29
5.4.70.0070.05016.29
5.4.60.0130.04016.46
5.4.50.0070.06316.39
5.4.40.0170.06716.64
5.4.30.0070.04316.41
5.4.20.0000.04316.30
5.4.10.0070.04716.36
5.4.00.0100.05715.88
5.3.290.0070.08314.70
5.3.280.0030.04714.59
5.3.270.0000.08014.60
5.3.260.0100.06714.63
5.3.250.0100.05714.75
5.3.240.0070.03714.52
5.3.230.0070.03714.58
5.3.220.0100.07314.56
5.3.210.0000.06714.65
5.3.200.0000.07314.59
5.3.190.0070.05714.57
5.3.180.0100.06714.59
5.3.170.0070.04714.60
5.3.160.0100.04714.61
5.3.150.0170.05314.62
5.3.140.0030.06314.43
5.3.130.0030.05314.70
5.3.120.0070.06714.70
5.3.110.0030.05014.59
5.3.100.0070.07314.06
5.3.90.0000.04014.17
5.3.80.0000.04014.04
5.3.70.0170.02314.05
5.3.60.0070.03314.00
5.3.50.0100.07013.90
5.3.40.0070.06313.96
5.3.30.0070.05013.92
5.3.20.0070.03313.64
5.3.10.0200.06013.72
5.3.00.0070.07013.53
5.2.170.0030.06711.15
5.2.160.0130.04711.17
5.2.150.0030.05711.20
5.2.140.0030.03011.20
5.2.130.0030.05711.11
5.2.120.0100.05711.10
5.2.110.0030.06011.16
5.2.100.0070.05711.15
5.2.90.0000.06711.15
5.2.80.0030.06011.00
5.2.70.0070.06011.06
5.2.60.0000.03311.11
5.2.50.0030.04011.00
5.2.40.0070.03011.07
5.2.30.0100.03011.02
5.2.20.0070.04311.10
5.2.10.0070.03711.00
5.2.00.0070.06011.00
5.1.60.0070.04711.00
5.1.50.0100.03311.00
5.1.40.0100.03011.00
5.1.30.0030.06011.00
5.1.20.0030.05711.00
5.1.10.0000.05711.00
5.1.00.0070.05011.00
5.0.50.0000.03311.00
5.0.40.0070.01311.00
5.0.30.0000.03311.00
5.0.20.0030.02311.00
5.0.10.0030.04011.00
5.0.00.0000.04311.00
4.4.90.0000.02311.00
4.4.80.0000.01711.00
4.4.70.0000.02311.00
4.4.60.0030.01711.00
4.4.50.0070.02311.00
4.4.40.0030.03011.00
4.4.30.0000.02711.00
4.4.20.0030.03311.00
4.4.10.0000.03011.00
4.4.00.0000.03011.00
4.3.110.0030.01711.00
4.3.100.0070.02011.00
4.3.90.0000.03711.00
4.3.80.0000.05311.00
4.3.70.0030.01711.00
4.3.60.0070.03311.00
4.3.50.0000.02011.00
4.3.40.0000.02311.00
4.3.30.0030.03011.00
4.3.20.0000.03311.00
4.3.10.0030.03711.00
4.3.00.0030.03311.00

preferences:
54.69 ms | 401 KiB | 5 Q