3v4l.org

run code in 300+ PHP versions simultaneously
<?php $w = 4000; $h = 3000; $width = 1500; $height = ($h/$w)*$width; echo $width.'x'.$height;

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.0120.00916.49
8.3.50.0100.00721.95
8.3.40.0120.00918.64
8.3.30.0070.00719.00
8.3.20.0040.00420.20
8.3.10.0080.00023.48
8.3.00.0030.00717.25
8.2.180.0150.00018.38
8.2.170.0070.01422.96
8.2.160.0100.00320.57
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0000.00822.11
8.2.110.0090.00022.04
8.2.100.0090.00317.84
8.2.90.0030.00617.78
8.2.80.0000.01117.97
8.2.70.0030.00617.50
8.2.60.0070.00318.04
8.2.50.0000.00818.07
8.2.40.0030.00518.34
8.2.30.0000.00717.99
8.2.20.0020.00517.73
8.2.10.0070.00018.18
8.2.00.0070.00317.65
8.1.280.0070.00725.92
8.1.270.0000.00722.06
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.34
8.1.230.0100.00321.03
8.1.220.0090.00017.79
8.1.210.0080.00018.85
8.1.200.0040.00417.36
8.1.190.0040.00417.30
8.1.180.0050.00318.10
8.1.170.0060.00318.45
8.1.160.0030.00321.87
8.1.150.0080.00318.55
8.1.140.0090.00017.46
8.1.130.0030.00317.82
8.1.120.0060.00317.48
8.1.110.0000.00717.33
8.1.100.0080.00017.32
8.1.90.0080.00017.38
8.1.80.0030.00317.32
8.1.70.0030.00317.29
8.1.60.0030.01017.58
8.1.50.0000.00817.57
8.1.40.0080.00017.38
8.1.30.0020.00517.52
8.1.20.0040.00417.54
8.1.10.0040.00417.36
8.1.00.0040.00417.40
8.0.300.0070.00019.89
8.0.290.0030.00317.04
8.0.280.0040.00418.44
8.0.270.0040.00417.15
8.0.260.0040.00417.17
8.0.250.0000.00716.99
8.0.240.0040.00416.83
8.0.230.0000.00716.91
8.0.220.0000.00616.79
8.0.210.0030.00316.94
8.0.200.0000.00716.87
8.0.190.0060.00316.93
8.0.180.0090.00316.89
8.0.170.0030.00616.88
8.0.160.0000.00716.90
8.0.150.0070.00016.84
8.0.140.0040.00416.88
8.0.130.0000.00613.21
8.0.120.0080.00016.79
8.0.110.0030.00516.91
8.0.100.0060.00316.85
8.0.90.0040.00416.79
8.0.80.0040.01116.87
8.0.70.0040.00416.90
8.0.60.0040.00416.72
8.0.50.0070.00016.84
8.0.30.0110.00717.19
8.0.20.0110.00917.40
8.0.10.0040.00416.80
8.0.00.0060.01116.71
7.4.330.0050.00015.09
7.4.320.0000.00616.58
7.4.300.0000.00616.59
7.4.290.0040.00416.49
7.4.280.0100.00016.49
7.4.270.0040.00416.61
7.4.260.0000.00716.37
7.4.250.0040.00416.59
7.4.240.0040.00416.44
7.4.230.0070.00016.41
7.4.220.0030.01616.61
7.4.210.0090.00816.48
7.4.200.0070.00016.22
7.4.190.0040.00416.49
7.4.160.0080.01516.46
7.4.150.0130.01317.40
7.4.140.0090.01017.86
7.4.130.0100.00616.48
7.4.120.0100.00716.37
7.4.110.0060.01116.48
7.4.100.0090.01216.38
7.4.90.0070.01016.37
7.4.80.0070.01019.39
7.4.70.0100.00716.43
7.4.60.0030.01316.41
7.4.50.0000.00816.37
7.4.40.0070.00722.77
7.4.30.0060.00916.18
7.4.00.0130.00314.76
7.3.330.0000.00513.09
7.3.320.0000.00513.02
7.3.310.0000.00816.19
7.3.300.0040.00416.10
7.3.290.0090.00516.30
7.3.280.0120.00616.27
7.3.270.0000.01717.40
7.3.260.0070.01016.58
7.3.250.0060.01216.34
7.3.240.0120.00616.25
7.3.230.0130.00416.39
7.3.210.0060.01316.16
7.3.200.0130.00619.39
7.3.190.0060.01516.34
7.3.180.0100.00516.29
7.3.170.0060.00916.35
7.3.160.0100.00716.36
7.3.120.0100.00714.96
7.2.330.0130.01016.43
7.2.320.0130.00316.64
7.2.310.0140.00316.34
7.2.300.0180.00016.69
7.2.290.0120.00916.68
7.2.110.0160.00716.45
7.2.00.0030.01219.46
7.1.100.0060.00617.68
7.1.70.0030.00517.21
7.1.60.0100.01319.46
7.1.50.0070.01516.95
7.1.00.0030.07722.45
7.0.200.0000.01116.70
7.0.140.0070.07322.18
7.0.60.0100.08319.93
7.0.50.0100.05017.90
7.0.40.0030.04320.02
7.0.30.0130.04720.09
7.0.20.0300.05020.01
7.0.10.0030.08320.02
7.0.00.0070.08720.32
5.6.280.0070.07020.95
5.6.210.0100.08020.60
5.6.200.0030.04018.13
5.6.190.0070.04320.27
5.6.180.0300.06720.61
5.6.170.0230.07720.50
5.6.160.0030.06020.52
5.6.150.0200.06718.17
5.6.140.0030.08318.15
5.6.130.0030.04318.16
5.6.120.0100.10320.96
5.6.110.0130.08321.11
5.6.100.0130.06720.97
5.6.90.0100.04721.09
5.6.80.0100.06020.46
5.5.350.0030.07320.39
5.5.340.0100.05717.91
5.5.330.0070.04020.43
5.5.320.0330.07020.26
5.5.310.0200.06320.29
5.5.300.0030.04317.98
5.5.290.0130.06317.95
5.5.280.0100.07720.77
5.5.270.0100.04320.75
5.5.260.0130.07320.79
5.5.250.0100.07020.61
5.5.240.3030.03320.11
5.4.450.0530.05019.11
5.4.440.0130.06019.52
5.4.430.0100.07719.46
5.4.420.0070.05719.31
5.4.410.0130.05019.35
5.4.400.0070.05319.38
5.4.390.0070.05719.25
5.4.380.0270.06018.72
5.4.370.0300.05718.62
5.4.360.0270.05318.63
5.4.350.0200.06018.70
5.4.340.0230.06018.74
5.4.320.0050.03912.45
5.4.310.0070.04012.45
5.4.300.0040.04012.45
5.4.290.0060.04312.43
5.4.280.0070.03612.33
5.4.270.0060.03712.33
5.4.260.0040.04112.33
5.4.250.0070.04312.33
5.4.240.0110.03612.33
5.4.230.0090.03812.32
5.4.220.0070.03612.32
5.4.210.0050.03712.32
5.4.200.0100.03312.32
5.4.190.0070.03512.32
5.4.180.0070.03412.32
5.4.170.0100.03312.33
5.4.160.0060.03712.32
5.4.150.0050.03812.32
5.4.140.0050.03812.01
5.4.130.0080.03411.99
5.4.120.0050.04011.95
5.4.110.0070.03611.95
5.4.100.0090.03311.95
5.4.90.0060.04011.95
5.4.80.0080.03611.95
5.4.70.0040.03911.95
5.4.60.0060.03411.95
5.4.50.0060.03511.95
5.4.40.0050.03911.93
5.4.30.0040.03811.93
5.4.20.0060.03811.93
5.4.10.0050.03711.93
5.4.00.0090.04711.43
5.3.290.0050.04312.80
5.3.280.0100.04312.71
5.3.270.0060.03912.72
5.3.260.0070.04312.71
5.3.250.0070.04312.71
5.3.240.0060.03812.71
5.3.230.0060.03812.71
5.3.220.0080.05412.68
5.3.210.0060.05112.68
5.3.200.0100.05312.68
5.3.190.0140.05512.68
5.3.180.0070.05412.67
5.3.170.0080.03612.67
5.3.160.0040.03912.67
5.3.150.0090.03612.68
5.3.140.0120.03112.66
5.3.130.0100.04812.66
5.3.120.0090.04712.66
5.3.110.0070.03812.66
5.3.100.0060.03712.12
5.3.90.0070.04612.08
5.3.80.0050.04712.07
5.3.70.0060.03712.07
5.3.60.0050.04012.07
5.3.50.0060.03712.00
5.3.40.0100.03312.00
5.3.30.0030.03811.94
5.3.20.0090.03311.72
5.3.10.0060.03511.69
5.3.00.0090.04311.68
5.2.170.0050.0349.18
5.2.160.0090.0289.18
5.2.150.0110.0419.18
5.2.140.0030.0459.18
5.2.130.0030.0319.14
5.2.120.0090.0259.14
5.2.110.0050.0329.15
5.2.100.0070.0419.14
5.2.90.0040.0419.14
5.2.80.0060.0359.14
5.2.70.0030.0349.14
5.2.60.0060.0439.09
5.2.50.0060.0429.05
5.2.40.0080.0389.04
5.2.30.0030.0459.00
5.2.20.0030.0429.00
5.2.10.0080.0358.95
5.2.00.0070.0338.81
5.1.60.0030.0268.10
5.1.50.0060.0238.09
5.1.40.0060.0228.07
5.1.30.0030.0288.42
5.1.20.0030.0298.45
5.1.10.0060.0248.17
5.1.00.0040.0288.17
5.0.50.0040.0216.65
5.0.40.0040.0206.50
5.0.30.0060.0296.32
5.0.20.0010.0226.29
5.0.10.0040.0206.26
5.0.00.0040.0316.26
4.4.90.0060.0154.78
4.4.80.0020.0164.75
4.4.70.0020.0214.76
4.4.60.0020.0164.76
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0020.0174.76
4.4.20.0020.0164.84
4.4.10.0020.0164.84
4.4.00.0040.0244.76
4.3.110.0040.0154.67
4.3.100.0010.0174.67
4.3.90.0020.0154.63
4.3.80.0030.0244.58
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0040.0154.63
4.3.40.0030.0284.54
4.3.30.0030.0223.32
4.3.20.0040.0193.29
4.3.10.0020.0163.25
4.3.00.0000.0278.63

preferences:
43.47 ms | 401 KiB | 5 Q