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->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.60.0150.00618.55
8.3.50.0060.01522.07
8.3.40.0090.00618.75
8.3.30.0070.00718.79
8.3.20.0050.00318.60
8.3.10.0080.00021.04
8.3.00.0040.00421.77
8.2.180.0070.01016.63
8.2.170.0100.01022.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.50
8.2.110.0030.00620.52
8.2.100.0100.00317.78
8.2.90.0000.00819.06
8.2.80.0030.00617.97
8.2.70.0050.00517.63
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0000.00818.22
8.2.30.0080.00019.40
8.2.20.0000.00717.46
8.2.10.0040.00417.63
8.2.00.0040.00417.61
8.1.280.0110.00425.92
8.1.270.0060.00321.84
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0100.00022.47
8.1.230.0080.00421.04
8.1.220.0000.00818.77
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0000.00817.43
8.1.180.0030.00618.10
8.1.170.0000.00818.59
8.1.160.0040.00418.69
8.1.150.0040.00418.51
8.1.140.0000.00717.39
8.1.130.0070.00017.82
8.1.120.0040.00417.36
8.1.110.0000.00817.30
8.1.100.0000.00717.42
8.1.90.0000.00717.28
8.1.80.0030.00517.36
8.1.70.0030.00317.36
8.1.60.0030.00617.36
8.1.50.0000.00717.52
8.1.40.0000.00817.51
8.1.30.0040.00417.51
8.1.20.0050.00317.67
8.1.10.0040.00417.47
8.1.00.0040.00717.52
8.0.300.0060.00319.98
8.0.290.0040.00417.03
8.0.280.0000.00718.38
8.0.270.0000.00717.18
8.0.260.0040.00416.73
8.0.250.0000.00716.99
8.0.240.0000.00816.96
8.0.230.0040.00316.96
8.0.220.0070.00016.86
8.0.210.0040.00416.87
8.0.200.0030.00316.81
8.0.190.0040.00416.83
8.0.180.0040.00416.95
8.0.170.0080.00016.77
8.0.160.0070.00016.96
8.0.150.0070.00016.95
8.0.140.0000.00716.89
8.0.130.0050.00013.28
8.0.120.0070.00016.92
8.0.110.0070.00016.86
8.0.100.0080.00016.84
8.0.90.0080.00016.85
8.0.80.0140.00416.84
8.0.70.0030.00316.73
8.0.60.0040.00416.85
8.0.50.0020.00516.82
8.0.30.0100.00816.89
8.0.20.0140.00817.40
8.0.10.0050.00316.84
8.0.00.0110.00616.65
7.4.330.0050.00016.84
7.4.320.0000.00616.44
7.4.300.0000.00616.43
7.4.290.0050.00316.43
7.4.280.0070.00016.39
7.4.270.0000.00716.52
7.4.260.0000.00613.32
7.4.250.0040.00416.42
7.4.240.0070.00016.40
7.4.230.0030.00416.58
7.4.220.0060.01116.44
7.4.210.0090.00616.57
7.4.200.0000.00716.66
7.4.190.0040.00416.67
7.4.160.0120.00316.54
7.4.150.0100.00617.40
7.4.140.0120.00517.86
7.4.130.0110.00816.64
7.4.120.0070.01016.37
7.4.110.0030.01416.34
7.4.100.0120.00916.46
7.4.90.0100.00716.61
7.4.80.0060.01019.39
7.4.70.0080.00816.63
7.4.60.0100.01016.44
7.4.50.0000.00516.42
7.4.40.0030.01222.77
7.4.30.0070.01016.39
7.4.00.0050.01214.79
7.3.330.0020.00213.16
7.3.320.0000.00513.11
7.3.310.0030.00516.39
7.3.300.0050.00216.21
7.3.290.0120.00316.28
7.3.280.0100.00516.25
7.3.270.0100.00717.40
7.3.260.0080.01118.24
7.3.250.0130.00516.27
7.3.240.0060.00916.24
7.3.230.0070.01016.39
7.3.210.0080.00816.43
7.3.200.0180.00319.39
7.3.190.0130.01016.60
7.3.180.0130.01016.46
7.3.170.0050.01116.29
7.3.160.0140.00316.39
7.3.120.0050.01214.72
7.3.110.0110.00714.55
7.3.100.0100.00714.85
7.3.90.0060.01014.57
7.3.80.0090.00614.74
7.3.70.0060.00314.60
7.3.60.0060.00614.80
7.3.50.0030.00914.83
7.3.40.0060.00614.89
7.3.30.0120.00014.81
7.3.20.0060.00916.41
7.3.10.0030.00616.37
7.3.00.0070.00716.63
7.2.330.0120.00616.64
7.2.320.0160.00616.68
7.2.310.0120.00616.39
7.2.300.0130.00316.65
7.2.290.0110.00716.76
7.2.250.0070.01315.00
7.2.240.0040.01614.88
7.2.230.0070.01014.80
7.2.220.0090.00314.98
7.2.210.0110.00315.19
7.2.200.0000.01214.95
7.2.190.0090.00914.96
7.2.180.0130.00014.82
7.2.170.0140.00315.04
7.2.110.0100.01016.47
7.2.60.0060.00316.41
7.2.00.0080.00419.45
7.1.330.0060.00615.45
7.1.320.0060.00615.71
7.1.310.0110.00415.55
7.1.300.0000.01115.41
7.1.290.0090.00615.59
7.1.280.0060.00815.36
7.1.270.0040.00815.59
7.1.260.0030.00915.71
7.1.200.0000.01315.44
7.1.70.0060.00616.95
7.1.60.0070.00417.12
7.1.50.0120.00916.50
7.1.00.0030.03322.38
7.0.200.0030.00916.57
7.0.140.0100.07022.11
7.0.60.0030.08021.81
7.0.50.0070.08017.84
7.0.40.0200.07720.18
7.0.30.0300.04020.20
7.0.20.0170.04320.25
7.0.10.0070.05020.23
7.0.00.0070.03720.24
5.6.280.0030.06721.00
5.6.210.0100.08320.69
5.6.200.0070.05718.21
5.6.190.0070.06320.67
5.6.180.0270.04020.41
5.6.170.0330.07020.45
5.6.160.0130.04020.39
5.6.150.0070.08318.17
5.6.140.0130.07318.14
5.6.130.0170.03718.14
5.6.120.0100.08021.05
5.6.110.0070.08321.14
5.6.100.0030.04020.98
5.6.90.0100.09320.99
5.6.80.0070.08320.44
5.5.350.4270.04020.40
5.5.340.0070.07717.92
5.5.330.0130.04720.21
5.5.320.0530.07320.27
5.5.310.0300.07020.34
5.5.300.0070.05317.95
5.5.290.0100.03317.95
5.5.280.0070.08720.80
5.5.270.0030.06720.87
5.5.260.0030.07320.79
5.5.250.0070.05020.50
5.5.240.0070.07020.26
5.4.450.4000.03019.38
5.4.440.0100.03319.40
5.4.430.1500.03719.43
5.4.420.4130.04019.47
5.4.410.4300.03719.14
5.4.400.4100.05019.06
5.4.390.4570.03319.11
5.4.380.3500.04018.89
5.4.370.4530.04019.11
5.4.360.4270.03718.91
5.4.350.3600.03719.11
5.4.340.3870.03318.95
5.4.320.0500.07718.89
5.4.310.4430.03319.02
5.4.300.4230.04019.17
5.4.290.4430.04019.15
5.4.280.4670.03318.91
5.4.270.4230.03319.11
5.4.260.3300.03719.07
5.4.250.3570.04019.06
5.4.240.3670.03318.94
5.4.230.3730.04019.11
5.4.220.3800.04018.95
5.4.210.3730.03019.14
5.4.200.3370.03318.92
5.4.190.3870.04019.00
5.4.180.3670.03319.13
5.4.170.3500.03718.94
5.4.160.4170.03718.99
5.4.150.4700.03718.99
5.4.140.4570.04016.50
5.4.130.4300.03316.38
5.4.120.4130.03716.41
5.4.110.4070.03716.28
5.4.100.3900.04016.54
5.4.90.3830.03016.51
5.4.80.4530.02016.58
5.4.70.3730.03716.16
5.4.60.3870.03716.40
5.4.50.5300.03316.62
5.4.40.4400.03716.20
5.4.30.4600.03716.18
5.4.20.4230.03016.19
5.4.10.4770.04016.43
5.4.00.3830.03715.98
5.3.290.4270.04014.66
5.3.280.3800.04014.60
5.3.270.3900.04314.65
5.3.260.4070.03314.60
5.3.250.4330.03014.64
5.3.240.4770.03314.61
5.3.230.4470.03714.59
5.3.220.3870.03714.59
5.3.210.3900.03714.62
5.3.200.4100.03314.57
5.3.190.3800.04314.60
5.3.180.4000.04314.70
5.3.170.4170.04014.70
5.3.160.3730.03314.49
5.3.150.4500.03014.56
5.3.140.4470.03714.46
5.3.130.4200.04314.45
5.3.120.4570.03314.60
5.3.110.4200.03714.57
5.3.100.3600.03014.06
5.3.90.3570.03714.07
5.3.80.3570.03714.01
5.3.70.3530.03714.05
5.3.60.3770.04014.07
5.3.50.3970.04314.01
5.3.40.4100.04013.96
5.3.30.5470.03013.95
5.3.20.3600.03713.61
5.3.10.4470.04013.65
5.3.00.3470.03713.68
5.2.170.3470.02711.12
5.2.160.3700.03311.19
5.2.150.3500.03011.12
5.2.140.3730.02711.16
5.2.130.3000.02311.11
5.2.120.3000.03011.12
5.2.110.3430.03311.16
5.2.100.3130.02711.13
5.2.90.3200.02711.16
5.2.80.3130.03010.98
5.2.70.3630.03011.06
5.2.60.3830.02711.11
5.2.50.3830.03011.07
5.2.40.3130.03311.07
5.2.30.3170.02710.97
5.2.20.2770.03711.00
5.2.10.2830.03010.82
5.2.00.3130.03310.79
5.1.60.2900.01710.00
5.1.50.3230.02010.01
5.1.40.3100.0239.99
5.1.30.3000.02710.39
5.1.20.2800.03010.41
5.1.10.2630.02710.06
5.1.00.2600.02710.14
5.0.50.1270.0208.69
5.0.40.1630.0238.48
5.0.30.1330.0308.25
5.0.20.1500.0238.34
5.0.10.1430.0238.14
5.0.00.1400.0278.14
4.4.90.1430.0137.98
4.4.80.1030.0137.98
4.4.70.1770.0177.98
4.4.60.1430.0137.98
4.4.50.1800.0137.98
4.4.40.1800.0237.98
4.4.30.1670.0137.98
4.4.20.1300.0137.98
4.4.10.1170.0177.98
4.4.00.1470.0237.98
4.3.110.1670.0207.98
4.3.100.1230.0137.98
4.3.90.1300.0107.98
4.3.80.1330.0277.98
4.3.70.1700.0137.98
4.3.60.1400.0177.98
4.3.50.1600.0137.98
4.3.40.1530.0237.98
4.3.30.0970.0237.98
4.3.20.0970.0207.98
4.3.10.0970.0207.98
4.3.00.1030.0177.98

preferences:
39.09 ms | 400 KiB | 5 Q