3v4l.org

run code in 500+ PHP versions simultaneously
<?php $userId = null; is_null($userId) && $userId = 5; var_dump($userId); $carId = null; if (is_null($carId)) { $carId = 5; } var_dump($carId);

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.5.30.0100.00817.57
8.5.20.0120.00519.62
8.5.10.0110.00718.77
8.5.00.0100.01120.08
8.4.180.0120.01019.59
8.4.170.0140.00820.51
8.4.160.0150.00820.64
8.4.150.0080.00716.83
8.4.140.0140.00717.58
8.4.130.0100.00918.74
8.4.120.0090.01120.48
8.4.110.0070.00218.86
8.4.100.0080.01217.61
8.4.90.0130.00620.43
8.4.80.0080.01218.61
8.4.70.0160.00617.61
8.4.60.0130.00618.68
8.4.50.0040.00620.53
8.4.40.0160.00319.30
8.4.30.0060.00320.39
8.4.20.0030.01620.39
8.4.10.0030.00619.18
8.3.300.0110.01019.19
8.3.290.0130.00720.83
8.3.280.0120.00818.29
8.3.270.0110.00816.76
8.3.260.0080.00916.44
8.3.250.0110.00816.85
8.3.240.0130.00816.45
8.3.230.0110.00816.39
8.3.220.0070.00118.92
8.3.210.0130.00618.63
8.3.200.0060.00316.44
8.3.190.0130.00517.10
8.3.180.0070.00818.38
8.3.170.0100.01017.23
8.3.160.0070.01016.60
8.3.150.0140.00417.42
8.3.140.0060.00317.26
8.3.130.0040.00418.67
8.3.120.0070.01018.91
8.3.110.0130.00620.94
8.3.100.0000.00916.70
8.3.90.0040.00426.77
8.3.80.0030.00619.36
8.3.70.0040.01116.63
8.3.60.0110.00418.56
8.3.50.0090.00923.57
8.3.40.0120.00318.69
8.3.30.0130.00618.84
8.3.20.0040.00420.63
8.3.10.0040.00421.63
8.3.00.0040.00423.60
8.2.300.0110.00820.30
8.2.290.0080.01117.37
8.2.280.0100.00718.50
8.2.270.0100.01016.42
8.2.260.0080.00018.55
8.2.250.0080.00016.48
8.2.240.0060.00317.14
8.2.230.0060.00322.58
8.2.220.0080.01124.06
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0120.00618.29
8.2.180.0150.00318.16
8.2.170.0080.00818.95
8.2.160.0110.00422.96
8.2.150.0090.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00021.11
8.2.110.0060.00319.33
8.2.100.0110.00017.78
8.2.90.0050.00317.75
8.2.80.0000.00818.66
8.2.70.0040.00417.63
8.2.60.0000.00718.04
8.2.50.0000.00918.05
8.2.40.0040.00419.94
8.2.30.0000.00719.30
8.2.20.0060.00318.05
8.2.10.0080.00019.36
8.2.00.0000.00819.27
8.1.340.0140.00720.05
8.1.330.0110.00716.18
8.1.320.0120.00716.07
8.1.310.0040.00416.56
8.1.300.0030.00616.00
8.1.290.0090.00330.84
8.1.280.0110.00425.92
8.1.270.0050.00322.07
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00319.46
8.1.230.0040.00817.70
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0040.00417.10
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0060.00317.62
8.1.160.0000.00818.79
8.1.150.0000.00718.91
8.1.140.0040.00420.74
8.1.130.0030.00320.21
8.1.120.0040.00417.47
8.1.110.0000.01017.48
8.1.100.0050.00317.37
8.1.90.0000.00817.33
8.1.80.0040.00417.45
8.1.70.0070.00317.43
8.1.60.0040.00417.55
8.1.50.0060.00317.52
8.1.40.0000.00817.33
8.1.30.0050.00317.68
8.1.20.0030.00617.57
8.1.10.0000.00817.45
8.1.00.0030.00617.29
8.0.300.0080.00018.93
8.0.290.0000.00816.75
8.0.280.0070.00018.31
8.0.270.0030.00318.00
8.0.260.0030.00320.05
8.0.250.0000.00716.91
8.0.240.0060.00316.84
8.0.230.0000.00716.83
8.0.220.0000.00716.77
8.0.210.0040.00416.88
8.0.200.0030.00316.89
8.0.190.0040.00416.91
8.0.180.0080.00016.91
8.0.170.0000.00816.93
8.0.160.0020.00516.83
8.0.150.0000.00716.74
8.0.140.0000.00716.82
8.0.130.0000.00513.28
8.0.120.0000.00816.83
8.0.110.0000.00716.92
8.0.100.0030.00316.91
8.0.90.0040.00416.90
8.0.80.0060.00916.78
8.0.70.0040.00416.86
8.0.60.0040.00416.79
8.0.50.0080.00016.77
8.0.30.0200.00316.81
8.0.20.0130.00717.05
8.0.10.0060.00316.99
8.0.00.0150.00316.86
7.4.330.0000.00516.77
7.4.320.0000.00616.44
7.4.300.0090.00016.48
7.4.290.0000.00716.45
7.4.280.0000.00716.48
7.4.270.0000.00816.54
7.4.260.0000.00513.29
7.4.250.0000.00716.42
7.4.240.0030.00316.53
7.4.230.0030.00316.38
7.4.220.0000.00716.49
7.4.210.0030.01616.43
7.4.200.0000.00716.66
7.4.130.0150.00416.36
7.4.120.0090.00916.37
7.4.110.0170.00016.33
7.4.100.0100.00716.51
7.4.90.0100.00716.40
7.4.80.0000.02019.39
7.4.70.0060.00916.35
7.4.60.0090.00616.45
7.4.50.0100.00716.34
7.4.40.0130.00316.56
7.4.10.0090.00616.54
7.4.00.0040.00917.09
7.3.330.0040.00416.14
7.3.320.0000.00513.09
7.3.310.0060.00016.27
7.3.300.0070.00016.15
7.3.290.0080.00916.15
7.3.280.0210.01116.16
7.3.260.0130.00316.08
7.3.240.0090.00916.32
7.3.230.0130.00316.18
7.3.210.0100.00716.48
7.3.200.0040.01416.25
7.3.190.0060.01216.35
7.3.180.0100.01416.13
7.3.170.0080.00816.18
7.3.160.0090.00916.47
7.3.130.0030.01216.37
7.3.120.0120.00416.29
7.3.110.0100.00516.27
7.3.100.0120.00316.32
7.3.90.0090.00616.21
7.3.80.0060.01016.13
7.3.70.0130.00316.14
7.3.60.0120.00616.21
7.3.50.0040.01116.10
7.3.40.0040.01116.31
7.3.30.0090.00616.09
7.3.20.0070.01116.25
7.3.10.0080.00916.16
7.3.00.0050.01516.09
7.2.330.0070.01016.60
7.2.320.0070.01016.64
7.2.310.0100.00716.41
7.2.300.0150.00216.31
7.2.290.0060.01016.66
7.2.260.0070.01016.70
7.2.250.0060.01016.25
7.2.240.0100.00716.36
7.2.230.0030.01316.43
7.2.220.0130.00316.38
7.2.210.0120.00616.29
7.2.200.0160.00416.58
7.2.190.0040.01216.30
7.2.180.0090.00616.36
7.2.170.0070.01016.52
7.2.160.0070.01016.49
7.2.150.0040.01416.57
7.2.140.0110.00616.41
7.2.130.0030.01516.38
7.2.120.0090.00916.62
7.2.110.0070.01016.54
7.2.100.0100.00616.55
7.2.90.0120.00616.41
7.2.80.0160.00616.27
7.2.70.0090.01016.46
7.2.60.0090.00916.54
7.2.50.0070.01016.63
7.2.40.0100.00616.68
7.2.30.0150.00316.47
7.2.20.0140.00316.30
7.2.10.0000.01516.59
7.2.00.0070.01016.50

preferences:
125.26 ms | 1454 KiB | 5 Q