3v4l.org

run code in 300+ PHP versions simultaneously
<?php $width = 300; $height = 150; $ratio = "2:1"; list($numerator, $denominator) = array_pad(sscanf($ratio, '%d/%d'), 2, 1); echo $numerator / $denominator == $width / $height ? 'true' : 'false';

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.0030.01018.43
8.3.50.0090.01121.96
8.3.40.0170.00318.73
8.3.30.0030.01018.77
8.3.20.0040.00419.09
8.3.10.0040.00421.71
8.3.00.0080.00020.95
8.2.180.0100.01016.50
8.2.170.0100.00322.96
8.2.160.0130.00021.96
8.2.150.0150.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00318.03
8.2.120.0040.00426.35
8.2.110.0070.00419.24
8.2.100.0110.00017.75
8.2.90.0000.00819.21
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0040.00417.93
8.2.50.0030.00618.10
8.2.40.0070.00020.63
8.2.30.0000.01020.61
8.2.20.0040.00417.77
8.2.10.0070.00018.10
8.2.00.0050.00218.01
8.1.280.0140.00325.92
8.1.270.0050.00323.91
8.1.260.0000.00828.09
8.1.250.0000.00728.09
8.1.240.0000.00919.26
8.1.230.0030.01017.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0080.00017.48
8.1.180.0050.00318.10
8.1.170.0080.00018.52
8.1.160.0070.00020.87
8.1.150.0040.00418.73
8.1.140.0000.00719.50
8.1.130.0000.00717.54
8.1.120.0000.00717.22
8.1.110.0040.00417.27
8.1.100.0080.00017.26
8.1.90.0030.00517.41
8.1.80.0040.00317.38
8.1.70.0030.00317.38
8.1.60.0050.00317.39
8.1.50.0030.00517.55
8.1.40.0040.00417.50
8.1.30.0000.00817.68
8.1.20.0000.00817.64
8.1.10.0030.00617.57
8.1.00.0070.00317.54
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0050.00218.49
8.0.270.0040.00417.23
8.0.260.0030.00317.16
8.0.250.0000.00717.04
8.0.240.0040.00417.02
8.0.230.0000.00716.89
8.0.220.0000.00716.91
8.0.210.0030.00316.92
8.0.200.0030.00516.88
8.0.190.0020.00517.00
8.0.180.0040.00416.79
8.0.170.0000.00716.83
8.0.160.0040.00416.80
8.0.150.0080.00016.83
8.0.140.0030.00616.73
8.0.130.0000.00613.34
8.0.120.0000.00716.88
8.0.110.0000.00716.83
8.0.100.0040.00416.77
8.0.90.0040.00416.91
8.0.80.0090.00616.85
8.0.70.0000.00716.92
8.0.60.0030.00616.87
8.0.50.0070.00016.82
8.0.30.0090.01217.04
8.0.20.0140.00717.40
8.0.10.0070.00016.89
8.0.00.0080.00816.69
7.4.330.0000.00516.79
7.4.320.0000.00616.61
7.4.300.0060.00016.49
7.4.290.0000.00916.58
7.4.280.0000.00816.48
7.4.270.0040.00416.50
7.4.260.0080.00016.48
7.4.250.0040.00416.35
7.4.240.0000.00716.51
7.4.230.0040.00416.50
7.4.220.0180.00416.70
7.4.210.0100.00416.54
7.4.200.0000.00716.48
7.4.160.0130.00316.52
7.4.150.0150.00717.40
7.4.140.0110.01017.86
7.4.130.0060.01116.50
7.4.120.0110.00716.44
7.4.110.0070.01116.63
7.4.100.0140.00316.54
7.4.90.0070.01016.43
7.4.80.0150.00519.39
7.4.70.0080.00816.57
7.4.60.0100.00716.41
7.4.50.0070.01116.48
7.4.40.0120.00816.64
7.4.30.0140.00316.40
7.4.00.0030.01415.03
7.3.330.0000.00713.14
7.3.320.0000.00513.07
7.3.310.0000.00716.15
7.3.300.0030.00616.29
7.3.290.0030.00316.26
7.3.280.0070.01116.37
7.3.270.0150.00317.40
7.3.260.0060.01116.58
7.3.250.0110.00816.37
7.3.240.0070.01016.45
7.3.230.0090.00616.39
7.3.210.0130.00316.52
7.3.200.0060.00916.61
7.3.190.0060.01216.52
7.3.180.0090.00616.62
7.3.170.0130.00316.44
7.3.160.0090.00616.52
7.2.330.0090.01116.49
7.2.320.0100.01016.63
7.2.310.0100.01016.54
7.2.300.0170.00316.35
7.2.290.0090.00616.71
7.2.60.0090.00617.00
7.2.00.0030.01219.48
7.1.200.0130.00015.67
7.1.100.0040.00417.87
7.1.70.0000.00816.75
7.1.60.0170.00719.24
7.1.00.0100.07022.44
7.0.200.0040.00814.87
7.0.60.0800.00020.12
7.0.50.0800.00020.22
7.0.40.0730.00020.39
7.0.30.0970.00020.37
7.0.20.0830.00020.38
7.0.10.0900.00020.42
7.0.00.1030.00020.32
5.6.280.0000.08021.07
5.6.210.0930.00020.52
5.6.200.0800.00021.13
5.6.190.0770.00020.96
5.6.180.1030.00021.05
5.6.170.0770.00021.18
5.6.160.0900.00021.02
5.6.150.0800.00020.95
5.6.140.0830.00020.99
5.6.130.0800.00021.05
5.6.120.1300.00021.04
5.6.110.0900.00021.07
5.6.100.0900.00021.19
5.6.90.0870.00021.02
5.6.80.0830.00020.50
5.6.70.0800.00020.43
5.6.60.0870.00020.39
5.6.50.1030.00020.59
5.6.40.0830.00020.43
5.6.30.0800.00020.57
5.6.20.0800.00020.55
5.6.10.0870.00020.33
5.6.00.0800.00020.46
5.5.350.0870.00020.38
5.5.340.0830.00020.87
5.5.330.0730.00020.71
5.5.320.1000.00020.97
5.5.310.0800.00020.73
5.5.300.0730.00020.82
5.5.290.0730.00020.83
5.5.280.0900.00021.04
5.5.270.0930.00020.94
5.5.260.0830.00020.85
5.5.250.1000.00020.77
5.5.240.0770.00020.25
5.5.230.0830.00020.20
5.5.220.0900.00020.33
5.5.210.0870.00020.23
5.5.200.0930.00020.36
5.5.190.0930.00020.34
5.5.180.0970.00020.29
5.5.160.0800.00020.12
5.5.150.0700.00020.21
5.5.140.0730.00020.22
5.5.130.0870.00020.33
5.5.120.0800.00020.22
5.5.110.0830.00020.13
5.5.100.1100.00020.28
5.5.90.0870.00020.18
5.5.80.0800.00020.28
5.5.70.0970.00020.10
5.5.60.0830.00020.03
5.5.50.0830.00020.07
5.5.40.0830.00020.14
5.5.30.0800.00020.15
5.5.20.0800.00020.05
5.5.10.0870.00020.07
5.5.00.0970.00020.04

preferences:
55.69 ms | 401 KiB | 5 Q