3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max_width = 100; $actual_width = 67; // When an actual width is returned by the oEmbed provider. $concluded_width_currently = $max_width ?: $actual_width; $concluded_width_proposed = $actual_width ?: $max_width; var_dump($concluded_width_currently); var_dump($concluded_width_proposed); // When NO actual width is returned by the oEmbed provider. $actual_width = NULL; $concluded_width_currently = $max_width ?: $actual_width; $concluded_width_proposed = $actual_width ?: $max_width; var_dump($concluded_width_currently); var_dump($concluded_width_proposed);

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.4.120.0130.00720.51
8.4.110.0110.00920.60
8.4.100.0070.00318.99
8.4.90.0090.01022.23
8.4.80.0070.00518.77
8.4.70.0040.00418.00
8.4.60.0150.00618.59
8.4.50.0100.00918.77
8.4.40.0160.00619.74
8.4.30.0070.01318.75
8.4.20.0030.01317.79
8.4.10.0030.00621.93
8.3.250.0090.00618.88
8.3.240.0130.00716.68
8.3.230.0150.00516.40
8.3.220.0050.00318.95
8.3.210.0120.00718.44
8.3.200.0080.00116.61
8.3.190.0110.00418.86
8.3.180.0090.01116.68
8.3.170.0180.00017.02
8.3.160.0140.00716.81
8.3.150.0090.00917.05
8.3.140.0030.00618.43
8.3.130.0000.00818.63
8.3.120.0000.01020.58
8.3.110.0000.01016.70
8.3.100.0040.00418.39
8.3.90.0070.00726.77
8.3.80.0030.00718.56
8.3.70.0120.00916.58
8.3.60.0060.01018.68
8.3.50.0170.00319.89
8.3.40.0080.00620.46
8.3.30.0120.00318.54
8.3.20.0070.00024.18
8.3.10.0000.00924.66
8.3.00.0040.00426.16
8.2.290.0080.00320.49
8.2.280.0110.00718.43
8.2.270.0080.00016.43
8.2.260.0080.00018.92
8.2.250.0080.00016.71
8.2.240.0080.00316.91
8.2.230.0040.00420.94
8.2.220.0040.00424.06
8.2.210.0020.00526.77
8.2.200.0090.00016.63
8.2.190.0070.00716.58
8.2.180.0140.00725.92
8.2.170.0110.00622.96
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0050.00226.16
8.2.110.0040.00421.99
8.2.100.0120.00017.84
8.2.90.0030.00517.63
8.2.80.0110.00418.62
8.2.70.0090.00017.50
8.2.60.0040.00417.38
8.2.50.0090.00017.98
8.2.40.0100.00018.09
8.2.30.0000.00718.16
8.2.20.0040.00419.10
8.2.10.0040.00418.11
8.2.00.0000.00819.17
8.1.330.0100.00722.15
8.1.320.0110.00815.90
8.1.310.0040.00418.11
8.1.300.0090.00016.36
8.1.290.0040.00430.84
8.1.280.0090.00625.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0040.00423.82
8.1.230.0040.00720.85
8.1.220.0030.00518.53
8.1.210.0040.00418.77
8.1.200.0030.00517.10
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0040.00417.62
8.1.160.0080.00018.84
8.1.150.0040.00418.52
8.1.140.0020.00617.36
8.1.130.0000.00718.88
8.1.120.0070.00017.43
8.1.110.0040.00417.44
8.1.100.0060.00317.43
8.1.90.0060.00617.40
8.1.80.0140.00017.39
8.1.70.0030.00917.41
8.1.60.0100.00417.54
8.1.50.0030.01017.34
8.1.40.0110.00717.43
8.1.30.0150.00317.66
8.1.20.0130.00517.45
8.1.10.0140.00317.44
8.1.00.0080.00817.39
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.46
8.0.270.0030.00316.72
8.0.260.0030.00318.34
8.0.250.0030.00317.00
8.0.240.0070.00016.84
8.0.230.0070.00716.80
8.0.220.0150.00016.75
8.0.210.0140.00016.88
8.0.200.0160.00016.97
8.0.190.0130.00316.89
8.0.180.0120.00416.87
8.0.170.0080.00616.91
8.0.160.0100.00516.91
8.0.150.0100.00316.86
8.0.140.0110.00016.65
8.0.130.0100.00016.71
8.0.120.0060.00616.75
8.0.110.0050.01016.86
8.0.100.0070.00716.83
8.0.90.0140.00016.71
8.0.80.0090.00716.92
8.0.70.0130.00316.83
8.0.60.0150.00016.76
8.0.50.0160.00016.81
8.0.30.0080.00816.82
8.0.20.0060.00616.82
8.0.10.0070.00416.90
7.4.330.0000.00415.55
7.4.320.0030.00316.45
7.4.300.0000.01216.45
7.4.290.0110.00516.50
7.4.280.0170.00016.58
7.4.270.0100.00816.56
7.4.260.0070.00716.59
7.4.250.0030.00616.21
7.4.240.0070.00516.37
7.4.230.0070.00416.51
7.4.220.0120.00016.57
7.4.210.0090.00316.47
7.4.200.0030.00916.46
7.4.190.0070.00716.64
7.4.180.0090.00316.42
7.4.160.0080.00316.31
7.4.150.0110.00016.36
7.4.140.0110.00016.38
7.4.130.0050.00516.43
7.4.120.0030.00616.27
7.4.110.0030.00616.20
7.4.100.0020.00616.39
7.4.90.0050.00516.31
7.4.80.0050.00516.10
7.4.70.0030.00616.30
7.4.60.0060.00616.41
7.4.50.0050.00316.34
7.4.40.0000.00816.38
7.4.30.0080.00016.32
7.4.20.0050.00516.25
7.4.10.0110.00316.39
7.4.00.0130.00016.31

preferences:
27.47 ms | 403 KiB | 5 Q